flip the sorting
This commit is contained in:
parent
73f7d5b1b2
commit
464976c482
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue