2015-05-04 14:19:58 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
from orchestra.core import accounts
|
2015-05-06 19:30:13 +00:00
|
|
|
from orchestra.utils.db import database_ready
|
2015-05-04 14:19:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
class OrdersConfig(AppConfig):
|
|
|
|
name = 'orchestra.contrib.orders'
|
|
|
|
verbose_name = 'Orders'
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
from .models import Order
|
2015-05-07 14:09:37 +00:00
|
|
|
accounts.register(Order, icon='basket.png')
|
2015-05-04 14:19:58 +00:00
|
|
|
if database_ready():
|
|
|
|
from . import signals
|