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

15 lines
417 B
Python
Raw Permalink Normal View History

2023-07-09 07:51:51 +00:00
from django.apps import AppConfig
from orchestra.core import administration
from orchestra.core.translations import ModelTranslation
class ServicesConfig(AppConfig):
name = 'orchestra.contrib.services'
verbose_name = 'Services'
def ready(self):
from .models import Service
administration.register(Service, icon='price.png')
ModelTranslation.register(Service, ('description',))