2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 10:17:47 +00:00

Django 1.7 mostly working. Big refactor so probably bugs

This commit is contained in:
Sam Wenham
2018-04-15 16:28:13 +01:00
parent 7877efba0a
commit 798ae591c6
18 changed files with 82 additions and 60 deletions

View File

@@ -7,7 +7,13 @@ site-specific user profile model specified in the
from django import forms
from django.conf import settings
from django.contrib.auth.models import SiteProfileNotAvailable
#from django.contrib.auth.models import SiteProfileNotAvailable
try:
from django.contrib.auth.models import SiteProfileNotAvailable
except ImportError: # django >= 1.7
SiteProfileNotAvailable = type('SiteProfileNotAvailable', (Exception,), {})
from django.db.models import get_model