From b9478d51b78f03bea26c1f77a6ceec030bf604c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Tue, 11 Oct 2016 22:11:55 +0200 Subject: [PATCH] order room by name --- planning/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/planning/models.py b/planning/models.py index 66852fe..d04afc6 100644 --- a/planning/models.py +++ b/planning/models.py @@ -16,6 +16,7 @@ class Room(models.Model): class Meta: unique_together = ['site', 'name'] + ordering = ['name'] def __str__(self): return self.name