Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
How to use django admin display some specific order data

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.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!