I have a 7-tuple of tuples as such:
POSSIBILITIES = ((1, "Something"),
(2, "Something else"), ...)
Now I have an IntegerField
with choices
in a model with the possibilities listed above.
class Something(models.Model):
class Meta:
ordering = "...?"
something = models.IntegerField(choices=POSSIBILITIES)
I want the entries in the database to be ordered by the integer in each of the tuples by default. How do I specify that?