Commits

Michał Jaworski  committed 597a342

issue #22 confirmed in tests

  • Participants
  • Parent commits e1fc1c7

Comments (0)

Files changed (2)

File oauth_provider/runtests/settings.py

     'oauth_provider',
     'oauth_provider.tests'
 )
+
+import django
+if django.VERSION >= (1, 5):
+    # custom user model for tests issue #22
+    INSTALLED_APPS += ('test_app',)
+    AUTH_USER_MODEL = 'test_app.TestUser'

File oauth_provider/runtests/test_app/models.py

+# -*- coding: utf-8 -*-
+from django.contrib.auth.models import AbstractBaseUser
+
+class TestUser(AbstractBaseUser):
+    pass