diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2018-04-15 16:28:13 +0100 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2018-04-15 16:28:13 +0100 |
commit | 798ae591c62947352bb2fa3b047d5ebb4a2fc629 (patch) | |
tree | 312e4a5dce84b3435c8ffa1799c38bd6bc4be2cc /profiles/utils.py | |
parent | 7877efba0a9c83f7ba34e6934ccc259177826ffc (diff) | |
download | troggle-798ae591c62947352bb2fa3b047d5ebb4a2fc629.tar.gz troggle-798ae591c62947352bb2fa3b047d5ebb4a2fc629.tar.bz2 troggle-798ae591c62947352bb2fa3b047d5ebb4a2fc629.zip |
Django 1.7 mostly working. Big refactor so probably bugs
Diffstat (limited to 'profiles/utils.py')
-rw-r--r-- | profiles/utils.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/profiles/utils.py b/profiles/utils.py index faacfcb..c2dfd61 100644 --- a/profiles/utils.py +++ b/profiles/utils.py @@ -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 |