Skip to content

Commit

Permalink
Merge pull request #11 from trik/master
Browse files Browse the repository at this point in the history
added support for custom user class
  • Loading branch information
michaelhelmick committed Mar 26, 2014
2 parents f8e9de9 + db9f03c commit 7501a23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion 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):
Expand Down
5 changes: 4 additions & 1 deletion twython_django_oauth/views.py
@@ -1,12 +1,15 @@
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
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
Expand Down

0 comments on commit 7501a23

Please sign in to comment.