django-orchestra/orchestra/contrib/mailboxes/apps.py
2015-05-07 14:09:37 +00:00

14 lines
372 B
Python

from django.apps import AppConfig
from orchestra.core import services
class MailboxesConfig(AppConfig):
name = 'orchestra.contrib.mailboxes'
verbose_name = 'Mailboxes'
def ready(self):
from .models import Mailbox, Address
services.register(Mailbox, icon='email.png')
services.register(Address, icon='X-office-address-book.png')