This repository has been archived on 2026-03-31. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
twython-django/twython_django_oauth/models.py
Mike Helmick 30a57c7950 Fixed to work with Twython 3.0.0 or greater and cleanup
Added LICENSE
updated README
updated setup.py
PEP8'd stuff
2013-06-19 19:11:43 -04:00

13 lines
480 B
Python

from django.db import models
from django.contrib.auth.models import User
class TwitterProfile(models.Model):
"""
An example Profile model that handles storing the oauth_token and
oauth_secret in relation to a user. Adapt this if you have a current
setup, there's really nothing special going on here.
"""
user = models.OneToOneField(User)
oauth_token = models.CharField(max_length=200)
oauth_secret = models.CharField(max_length=200)