Skip to content

Instantly share code, notes, and snippets.

@swinton
Created April 30, 2013 18:20
Show Gist options
  • Select an option

  • Save swinton/5490752 to your computer and use it in GitHub Desktop.

Select an option

Save swinton/5490752 to your computer and use it in GitHub Desktop.
AccountMeta definition
class AccountMeta(models.Model):
key = models.CharField(max_length=240, db_index=True)
value = models.TextField()
account = models.ForeignKey(SocialAccount, related_name='meta')
created_at = models.DateTimeField(auto_now_add=True, db_index=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
unique_together=('account', 'key')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment