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

13 lines
298 B
Python
Raw Normal View History

2023-07-09 07:51:51 +00:00
from django.apps import AppConfig
from orchestra.core import accounts
class ContactsConfig(AppConfig):
name = 'orchestra.contrib.contacts'
verbose_name = 'Contacts'
def ready(self):
from .models import Contact
accounts.register(Contact, icon='contact_book.png')