django-orchestra/orchestra/contrib/issues/apps.py

16 lines
485 B
Python
Raw Normal View History

2023-07-09 07:51:51 +00:00
from django.apps import AppConfig
from orchestra.core import accounts, administration
from orchestra.core.translations import ModelTranslation
class IssuesConfig(AppConfig):
name = 'orchestra.contrib.issues'
verbose_name = "Issues"
def ready(self):
from .models import Queue, Ticket
accounts.register(Ticket, icon='Ticket_star.png')
administration.register(Queue, dashboard=False)
ModelTranslation.register(Queue, ('verbose_name',))