google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

Model defined ordering doesnt work when defining more than one order / sort clause #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a model with meta ordering and two order clauses (i.e. ordering = 
('target_user_type','position'))
2. Access the model list via the admin
3. Grappelli defaults the sorting to the first item defined in the list, 
preventing the second column from ever 
being ordered

What is the expected output? What do you see instead?
I would only expect a column in the admin list page to physically show a human 
'sorted' column if a user 
actually clicks it. otherwise i would expect it to default to the hierarchy of 
order clauses defined in the model 

What version of the product are you using? On what operating system?
Django 1.1 and grappelli 2

Original issue reported on code.google.com by ben...@rawjam.co.uk on 3 Oct 2009 at 3:00

GoogleCodeExporter commented 9 years ago
you´re not talking about a grappelli issue, right? if it works with the django
admin-interface, it should also work with grappelli ... we didn´t change 
anything
when it comes to ordering on the changelist.

Original comment by sehmaschine on 3 Oct 2009 at 3:11

GoogleCodeExporter commented 9 years ago
Oh, sorry. Feel rather silly now. It just doesnt seem to work for me when 
defining two sort columns. Guess it 
must be an inherent django issue.

Original comment by ben...@rawjam.co.uk on 3 Oct 2009 at 3:18

GoogleCodeExporter commented 9 years ago
alright. closing this as "invalid".

Original comment by sehmaschine on 3 Oct 2009 at 3:19