2015-05-07 14:09:37 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
2015-05-08 14:05:57 +00:00
|
|
|
from orchestra.core import administration, accounts, services
|
2015-05-07 14:09:37 +00:00
|
|
|
from orchestra.core.translations import ModelTranslation
|
|
|
|
|
|
|
|
|
|
|
|
class PlansConfig(AppConfig):
|
|
|
|
name = 'orchestra.contrib.plans'
|
|
|
|
verbose_name = 'Plans'
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
from .models import Plan, ContractedPlan
|
|
|
|
accounts.register(ContractedPlan, icon='ContractedPack.png')
|
2015-05-08 14:05:57 +00:00
|
|
|
services.register(ContractedPlan, menu=False, dashboard=False)
|
2015-05-07 14:09:37 +00:00
|
|
|
administration.register(Plan, icon='Pack.png')
|
|
|
|
ModelTranslation.register(Plan, ('verbose_name',))
|