From 246263814d0c59ffe1f3a3aa38b96bfdaa904f7c Mon Sep 17 00:00:00 2001 From: Lynn Root Date: Fri, 17 Aug 2012 19:02:57 -0700 Subject: [PATCH] fixed indents, added def unicode --- githubnetwork/models.py | 51 ++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/githubnetwork/models.py b/githubnetwork/models.py index bb2244a..b5e8d39 100644 --- a/githubnetwork/models.py +++ b/githubnetwork/models.py @@ -1,25 +1,28 @@ - from django.db import models - from django.contrib.auth.models import User +from django.db import models +from django.contrib.auth.models import User - class GHUser(models.Model): - user = models.ForeignKey(User, unique=True) - following = models.ManyToMany(self, related_name='followers') - created_at = models.DateTimeField('date account created') - acct_type = models.CharField(max_length=255) - gh_login = models.CharField(max_length=255) - blog = models.URLfield(max_length=255) - email = models.EmailField(max_length=255) - avatar_url = models.URLfield(max_length=255) - public_gists = models.IntegerField() - hireable = models.BooleanField() - followers_count = models.IntegerField() - html_url = models.URLfield(max_length=255) - bio = models.TextField() - name = models.CharField(max_length=255) - company = models.CharField(max_length=255) - url = models.URLfield(max_length=255) - gravatar_id = models.CharField(max_length=255) - gh_id = models.IntegerField() - public_repos = models.IntegerField() - following_count = models.IntegerField() - location = models.CharField(max_length=255) \ No newline at end of file +class GHUser(models.Model): + user = models.ForeignKey(User, unique=True) + following = models.ManyToMany(self, related_name='followers') + created_at = models.DateTimeField('date account created') + acct_type = models.CharField(max_length=255) + gh_login = models.CharField(max_length=255) + blog = models.URLfield(max_length=255) + email = models.EmailField(max_length=255) + avatar_url = models.URLfield(max_length=255) + public_gists = models.IntegerField() + hireable = models.BooleanField() + followers_count = models.IntegerField() + html_url = models.URLfield(max_length=255) + bio = models.TextField() + name = models.CharField(max_length=255) + company = models.CharField(max_length=255) + url = models.URLfield(max_length=255) + gravatar_id = models.CharField(max_length=255) + gh_id = models.IntegerField() + public_repos = models.IntegerField() + following_count = models.IntegerField() + location = models.CharField(max_length=255) + + def __unicode__(self): + return self.login \ No newline at end of file