1. djm_
  2. django-registration

Commits

djm_  committed be7debb

Fix for registration.compat.get_user_model using incorrect exception class during handling: IOError -> ImportError.

  • Participants
  • Parent commits fb3d291
  • Branches default

Comments (0)

Files changed (1)

File registration/compat.py

View file
  • Ignore whitespace
         # Django 1.5+
         from django.contrib.auth import get_user_model
         model = get_user_model()
-    except IOError:
+    except ImportError:
         # Django <= 1.4
         from django.contrib.auth.models import User
         model = User