flip the sorting

This commit is contained in:
Thomas Steen Rasmussen 2017-02-16 22:05:10 +01:00
parent 73f7d5b1b2
commit 464976c482

View file

@ -7,7 +7,7 @@ from django.core.exceptions import ValidationError
class InfoCategory(CreatedUpdatedModel):
class Meta:
ordering = ['-weight', 'headline']
ordering = ['weight', 'headline']
unique_together = (('anchor', 'camp'), ('headline', 'camp'))
verbose_name_plural = "Info Categories"
@ -42,7 +42,7 @@ class InfoCategory(CreatedUpdatedModel):
class InfoItem(CreatedUpdatedModel):
class Meta:
ordering = ['-weight', 'headline']
ordering = ['weight', 'headline']
unique_together = (('anchor', 'category'), ('headline', 'category'))
category = models.ForeignKey(