diff options
author | Dan McGee <dan@archlinux.org> | 2010-08-28 11:37:39 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-28 11:41:19 -0500 |
commit | d57696c8013d78f017972ae72efeeb441c954cb2 (patch) | |
tree | 5e9d9a70cda9a40b56dec08a1caf5b1e3e36edee /main/models.py | |
parent | 7dcdb0a31519c038e25436b49a60b9e54a41372b (diff) |
PyLint suggested cleanups
We had a bunch of extra imports, non-conventional variable names, spacing
issues, etc. that were relatively low-hanging fruit to clean up. Fix them
and make the code a bit cleaner in the process.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/models.py b/main/models.py index c6b4e139..2079deeb 100644 --- a/main/models.py +++ b/main/models.py @@ -1,5 +1,4 @@ from django.db import models -from django.db.models import Q from django.contrib.auth.models import User from django.contrib.sites.models import Site @@ -138,7 +137,7 @@ class News(models.Model): class Arch(models.Model): id = models.AutoField(primary_key=True) - name = models.CharField(max_length=255,unique=True) + name = models.CharField(max_length=255, unique=True) def __unicode__(self): return self.name class Meta: @@ -148,7 +147,7 @@ class Arch(models.Model): class Repo(models.Model): id = models.AutoField(primary_key=True) - name = models.CharField(max_length=255,unique=True) + name = models.CharField(max_length=255, unique=True) testing = models.BooleanField(default=False, help_text="Is this repo meant for package testing?") bugs_project = models.SmallIntegerField(default=1, |