Commits

gfxmonk committed 8c78063

Replaced direct use of User with get_current_user() for django 1.5 compatiblity

  • Participants
  • Parent commits b963cb9
  • Branches cbv

Comments (0)

Files changed (1)

File registration/models.py

 import re
 
 from django.conf import settings
-from django.contrib.auth.models import User
+from django.contrib.auth import get_user_model
+User = get_user_model()
 from django.db import models
 from django.db import transaction
 from django.template.loader import render_to_string