Created
August 21, 2014 23:38
-
-
Save Sentient07/ec7613b24790a9b55302 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserProfiles(models.Model): | |
user = models.ForeignKey(User, unique=True) | |
follows = models.ManyToManyField(User, related_name='followers', symmetrical=False) | |
description = models.TextField(verbose_name=_("description")) | |
place = models.TextField(verbose_name=_("place")) | |
reputation = models.IntegerField(auto_created=True, default=0) | |
prof_pic = models.FilePathField(path="/home/ramana/PycharmProjects/social-network/static/images") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class UserProfiles(models.Model):
user = models.OneToOneField(User, related_name="profile")
follows = models.ManyToManyField(User, related_name='followers', symmetrical=False)
description = models.TextField(verbose_name=("description"))
place = models.TextField(verbose_name=("place"))
reputation = models.IntegerField(auto_created=True, default=0)
prof_pic = models.FilePathField(path="/home/ramana/PycharmProjects/social-network/static/images")