2014-07-08 16:37:38 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
from django.contrib.contenttypes import generic
|
|
|
|
|
2014-07-09 16:17:43 +00:00
|
|
|
from orchestra.utils import running_syncdb
|
|
|
|
|
2014-07-08 16:37:38 +00:00
|
|
|
|
|
|
|
class ResourcesConfig(AppConfig):
|
|
|
|
name = 'orchestra.apps.resources'
|
|
|
|
verbose_name = 'Resources'
|
|
|
|
|
|
|
|
def ready(self):
|
2014-07-09 16:17:43 +00:00
|
|
|
if not running_syncdb():
|
2014-07-10 10:03:22 +00:00
|
|
|
from .models import create_resource_relation
|
|
|
|
create_resource_relation()
|