Skip to content

Instantly share code, notes, and snippets.

@milin
Created March 29, 2011 17:40
Show Gist options
  • Save milin/892843 to your computer and use it in GitHub Desktop.
Save milin/892843 to your computer and use it in GitHub Desktop.
class Client_Twitter(models.Model):
user = models.OneToOneField('Client')
twitter_id = models.DecimalField(max_digits=20, decimal_places=0,null=True)
access_token = models.CharField(max_length=200,null=True)
access_token_secret = models.CharField(max_length=200,null=True)
twitter_username = models.CharField(max_length=200,null=True)
def __unicode__(self):
return self.user.user.username
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment