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