Skip to content

Commit c177d35

Browse files
author
Han He
committed
Fix the issue: AppRegistryNotReady exception while syncdb with Django 1.7, according to
this suggestion in django document: https://docs.djangoproject.com/en/1.7/ref/applications/#troubleshooting
1 parent c99a629 commit c177d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xadmin/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import datetime
1616
import decimal
1717

18-
if django.VERSION[1] > 4:
18+
if 4 < django.VERSION[1] < 7:
1919
AUTH_USER_MODEL = django.contrib.auth.get_user_model()
2020
else:
2121
AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')

0 commit comments

Comments
 (0)