Created
May 15, 2013 11:19
-
-
Save relekang/5583288 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import django | |
if django.VERSION >= (1, 5): | |
from django.contrib.auth import get_user_model | |
User = get_user_model() | |
else: | |
from django.contrib.auth.models import User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment