I have model below
class SynonymQuery(models.Model):
original_query = models.CharField(max_length=30,verbose_name = "query")
insert_time = models.DateField(auto_now_add=True)
admin below
class synonym_queryAdmin(admin.ModelAdmin):
ordering = ('update_time','original_query')
data 1.bcd time 2.abc time 3.bcd time
if No.1 data is insert last time, I want to show data all the same original_query as No.1 in the header lines.
I try to use ordering function, but result are incorrect.