From 991fbfc6f5399a25850271bece24db1b1f070f74 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 20 Dec 2017 19:51:49 +0100 Subject: [PATCH] sort city outputs by zip code --- django/didgeridoo/webshop/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/didgeridoo/webshop/models.py b/django/didgeridoo/webshop/models.py index 185abd4..484a5a3 100644 --- a/django/didgeridoo/webshop/models.py +++ b/django/didgeridoo/webshop/models.py @@ -115,6 +115,7 @@ class City(models.Model): class Meta: verbose_name_plural = "Cities" + ordering = ['zip_code'] class Salutation(models.Model):