minor changes
This commit is contained in:
parent
496634f613
commit
8f53f6847b
1 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
class GHUser(models.Model):
|
||||
user = models.ForeignKey(User, unique=True)
|
||||
user = models.ForeignKey(User, unique=True, verbose_name='ghuser')
|
||||
following = models.ManyToMany(self, related_name='followers')
|
||||
created_at = models.DateTimeField('date account created')
|
||||
acct_type = models.CharField(max_length=255)
|
||||
|
@ -28,7 +29,7 @@ class GHUser(models.Model):
|
|||
return self.login
|
||||
|
||||
class Repo(models.Model):
|
||||
owner = models.ForeignKey(GHUser, unique=True)
|
||||
owner = models.ForeignKey(GHUser, unique=True, verbose_name='ghuser')
|
||||
forks = models.IntegerField()
|
||||
language = models.CharField(max_length=255)
|
||||
created_at = models.DateTimeField('date repo created')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue