admin: do not load auquotidien_plugin.models if auquotidien_plugin is not installed
This commit is contained in:
parent
e41452e06e
commit
71071a136e
|
@ -14,8 +14,6 @@ from django.contrib.auth.models import Group
|
||||||
|
|
||||||
from authentic2.saml.models import LibertyProvider, LibertyServiceProvider
|
from authentic2.saml.models import LibertyProvider, LibertyServiceProvider
|
||||||
|
|
||||||
from auquotidien_plugin.models import AuQuotidienAPI
|
|
||||||
|
|
||||||
from . import app_settings
|
from . import app_settings
|
||||||
from . import models
|
from . import models
|
||||||
|
|
||||||
|
@ -188,6 +186,7 @@ if 'wcsinst.wcsinst' in settings.INSTALLED_APPS:
|
||||||
c += 1
|
c += 1
|
||||||
sleep_length *= 2
|
sleep_length *= 2
|
||||||
if done and 'auquotidien_plugin' in settings.INSTALLED_APPS:
|
if done and 'auquotidien_plugin' in settings.INSTALLED_APPS:
|
||||||
|
from auquotidien_plugin.models import AuQuotidienAPI
|
||||||
defaults = {
|
defaults = {
|
||||||
'name': instance.title,
|
'name': instance.title,
|
||||||
'orig': request.META['HTTP_HOST'],
|
'orig': request.META['HTTP_HOST'],
|
||||||
|
|
|
@ -145,6 +145,7 @@ INSTALLED_APPS = (
|
||||||
'data_source_plugin',
|
'data_source_plugin',
|
||||||
'a2_service_list_plugin',
|
'a2_service_list_plugin',
|
||||||
'federation_plugin',
|
'federation_plugin',
|
||||||
|
'auquotidien_plugin',
|
||||||
'sekizai',
|
'sekizai',
|
||||||
'portail_citoyen',
|
'portail_citoyen',
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue