forked from wiktor/spejstore-new
models: Order categories by name by default
This commit is contained in:
parent
7cf67e4195
commit
19cb03b8e9
|
@ -29,6 +29,9 @@ class Category(models.Model):
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
||||
|
||||
# TODO label versioning
|
||||
# Zapisywać w URL na naklejce jej wersję, aby można było łatwo wyłapać
|
||||
|
|
Loading…
Reference in New Issue