Skip to content

Instantly share code, notes, and snippets.

@somyamohanty
Created August 1, 2013 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save somyamohanty/6135725 to your computer and use it in GitHub Desktop.
Save somyamohanty/6135725 to your computer and use it in GitHub Desktop.
class FB_activity(models.Model):
investigation = models.ForeignKey("investigation.Investigation")
author = models.ForeignKey(FB_user)
fbid = models.TextField()
activity_type = models.TextField()
body = models.TextField()
created_time = models.DateTimeField(blank=True,null=True)
updated_time = models.DateTimeField(blank=True,null=True)
our_updated_time = models.DateTimeField(auto_now=True)
place = models.TextField(blank=True)
tags = ArrayField(dbtype="text", dimension=2)
likes = ArrayField(dbtype="text", dimension=2)
comments = ArrayField(dbtype="text", dimension=2)
raw = models.TextField()
objects = ExpressionManager()
def __unicode__(self):
return self.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment