fixed indents, added def unicode
This commit is contained in:
parent
56413b2be1
commit
246263814d
1 changed files with 27 additions and 24 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue