X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fmodels.py;h=676f2192de5fe8a2f8a2aeafee0945ea5d5501e7;hb=d558686a05339b18d33d6ba9688acd9f35ad9a36;hp=134e12f7f30bb0b74360986ce78822742770352f;hpb=25f3514a617e91dae3d255b3685f3a1f9799727b;p=patchwork 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