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 InfoCategory(CreatedUpdatedModel):
class Meta: class Meta:
ordering = ['-weight', 'headline'] ordering = ['weight', 'headline']
unique_together = (('anchor', 'camp'), ('headline', 'camp')) unique_together = (('anchor', 'camp'), ('headline', 'camp'))
verbose_name_plural = "Info Categories" verbose_name_plural = "Info Categories"
@ -42,7 +42,7 @@ class InfoCategory(CreatedUpdatedModel):
class InfoItem(CreatedUpdatedModel): class InfoItem(CreatedUpdatedModel):
class Meta: class Meta:
ordering = ['-weight', 'headline'] ordering = ['weight', 'headline']
unique_together = (('anchor', 'category'), ('headline', 'category')) unique_together = (('anchor', 'category'), ('headline', 'category'))
category = models.ForeignKey( category = models.ForeignKey(