added support for custom user class #11

Merged
trik merged 3 commits from master into master 2014-03-26 06:55:37 -07:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit d4355c3809 - Show all commits

View file

@ -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):

View file

@ -1,5 +1,5 @@
from django.contrib.auth import authenticate, login, logout as django_logout
from django.contrib.auth.models import User
from django.contrib.auth import get_user_model
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.conf import settings
@ -7,6 +7,9 @@ from django.core.urlresolvers import reverse
from twython import Twython
User = get_user_model()
# If you've got your own Profile setup, see the note in the models file
# about adapting this to your own setup.
from twython_django_oauth.models import TwitterProfile