From a479bd405a828f42408663aaa360c52e128b9d3b Mon Sep 17 00:00:00 2001 From: Marco Marche Date: Tue, 25 Mar 2014 22:16:41 +0100 Subject: [PATCH] added support for custom user class --- twython_django_oauth/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twython_django_oauth/models.py b/twython_django_oauth/models.py index 3319d40..bb9ce71 100644 --- a/twython_django_oauth/models.py +++ b/twython_django_oauth/models.py @@ -1,5 +1,7 @@ from django.db import models -from django.contrib.auth.models import User +from django.contrib.auth import get_user_model + +User = get_user_model() class TwitterProfile(models.Model):