filter objects django order by code example Example: django order by class Meta: ordering = ('date',)