1. Gregory Petukhov
  2. django-urlauth

Pull requests

#2 Merged
Repository
zorainc
Branch
default
Repository
lorien
Branch
default

Adds django 1.5 support (custom user model)

Author
  1. Zora Inc
Reviewers
Description

Updated the code to include the following to get the User model in Django 1.5, when using a custom user model. The change should be backwards compatible:

try: from django.contrib.auth import get_user_model User = get_user_model() except ImportError: from django.contrib.auth.models import User

  • Learn about pull requests

Comments (1)

  1. Gregory Petukhov repo owner

    Thank you. Right now I have no time to check you code but I think it is better to merge it right now because I am afraid I can forget to do it in near future.