From c970af5cd015372f405596b14b4bbcc0494c084f Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Thu, 22 Dec 2016 12:10:09 +0300 Subject: [PATCH] nices ordering --- trademark/models.py | 1 + trademark/templates/trademark/search_detail.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/trademark/models.py b/trademark/models.py index 1515341..fcf1ab4 100644 --- a/trademark/models.py +++ b/trademark/models.py @@ -38,6 +38,7 @@ class Nice(models.Model): class Meta: verbose_name = _('nice') verbose_name_plural = _('classes') + ordering = ('nice_id', ) def __unicode__(self): # Python 3: def __str__(self): return self.title diff --git a/trademark/templates/trademark/search_detail.html b/trademark/templates/trademark/search_detail.html index cdabda8..034e464 100644 --- a/trademark/templates/trademark/search_detail.html +++ b/trademark/templates/trademark/search_detail.html @@ -73,7 +73,7 @@ {% endif %} -
+

Попробуйте проверить другой товарный знак

{% include 'trademark/form.html' %}