diff options
author | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-03-09 01:15:06 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-03-15 16:07:06 +0800 |
commit | d558686a05339b18d33d6ba9688acd9f35ad9a36 (patch) | |
tree | 12bc6a89c4918e74d49cb01467416870e67ad604 /apps/patchwork/models.py | |
parent | 25f3514a617e91dae3d255b3685f3a1f9799727b (diff) | |
download | patchwork-d558686a05339b18d33d6ba9688acd9f35ad9a36.tar.bz2 patchwork-d558686a05339b18d33d6ba9688acd9f35ad9a36.tar.xz |
Remove unused imports
This is so that we can use static analysis tools like pyflakes to find
undefined names (and other common mistakes we often make) without being
swamped with unused imports warnings.
Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/models.py')
-rw-r--r-- | apps/patchwork/models.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index 134e12f..676f219 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -21,12 +21,10 @@ from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.contrib.sites.models import Site -from django.conf import settings from patchwork.parser import hash_patch import re import datetime, time -import string import random try: @@ -322,7 +320,7 @@ class Bundle(models.Model): return self.patches.all().count() def ordered_patches(self): - return self.patches.order_by('bundlepatch__order'); + return self.patches.order_by('bundlepatch__order') def append_patch(self, patch): # todo: use the aggregate queries in django 1.1 |