From d57696c8013d78f017972ae72efeeb441c954cb2 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 28 Aug 2010 11:37:39 -0500 Subject: 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 --- main/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main') diff --git a/main/models.py b/main/models.py index c6b4e13..2079dee 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, -- cgit v1.2.3-24-g4f1b