fixed indents, added def unicode

This commit is contained in:
Lynn Root 2012-08-17 19:02:57 -07:00
parent 56413b2be1
commit 246263814d

View file

@ -1,7 +1,7 @@
from django.db import models from django.db import models
from django.contrib.auth.models import User from django.contrib.auth.models import User
class GHUser(models.Model): class GHUser(models.Model):
user = models.ForeignKey(User, unique=True) user = models.ForeignKey(User, unique=True)
following = models.ManyToMany(self, related_name='followers') following = models.ManyToMany(self, related_name='followers')
created_at = models.DateTimeField('date account created') created_at = models.DateTimeField('date account created')
@ -23,3 +23,6 @@
public_repos = models.IntegerField() public_repos = models.IntegerField()
following_count = models.IntegerField() following_count = models.IntegerField()
location = models.CharField(max_length=255) location = models.CharField(max_length=255)
def __unicode__(self):
return self.login