forked from CGM_Public/pretix_original
Allow plugins to use django.contrib.postgres
This commit is contained in:
@@ -307,6 +307,10 @@ INSTALLED_APPS = [
|
|||||||
'phonenumber_field'
|
'phonenumber_field'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if db_backend == 'postgresql':
|
||||||
|
# ALlow plugins to use django.contrib.postgres
|
||||||
|
INSTALLED_APPS.insert(0, 'django.contrib.postgres')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import django_extensions # noqa
|
import django_extensions # noqa
|
||||||
INSTALLED_APPS.append('django_extensions')
|
INSTALLED_APPS.append('django_extensions')
|
||||||
|
|||||||
Reference in New Issue
Block a user