default ordering django

Solutions on MaxInterview for default ordering django by the best coders in the world

showing results for - "default ordering django"
Iris
19 Jun 2017
1# There is no default ordering by default
2# To add one, specify `ordering` in `YourModel.Meta`
3
4class Table(models.Model):
5    ...
6    class Meta:
7        ordering = ['name']
8
similar questions
queries leading to this page
default ordering django