admin: do not load auquotidien_plugin.models if auquotidien_plugin is not installed

This commit is contained in:
Benjamin Dauvergne 2014-03-13 11:26:27 +01:00
parent e41452e06e
commit 71071a136e
2 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,6 @@ from django.contrib.auth.models import Group
from authentic2.saml.models import LibertyProvider, LibertyServiceProvider
from auquotidien_plugin.models import AuQuotidienAPI
from . import app_settings
from . import models
@ -188,6 +186,7 @@ if 'wcsinst.wcsinst' in settings.INSTALLED_APPS:
c += 1
sleep_length *= 2
if done and 'auquotidien_plugin' in settings.INSTALLED_APPS:
from auquotidien_plugin.models import AuQuotidienAPI
defaults = {
'name': instance.title,
'orig': request.META['HTTP_HOST'],

View File

@ -145,6 +145,7 @@ INSTALLED_APPS = (
'data_source_plugin',
'a2_service_list_plugin',
'federation_plugin',
'auquotidien_plugin',
'sekizai',
'portail_citoyen',
)