Fixed #21924 -- added a test and documentation #2275

wants to merge 2 commits into


None yet

3 participants


Added a test and documentation for ticket #21924 ( The original pull request can be seen here: #2201.

fetzig and others added some commits Jan 23, 2014
@fetzig @wreckage fetzig added reverse order for admin_order_field
after adding this you can setup something like this:

def age_in_years(self):
    return # age calculated via DateField self.date_of_birth
age_in_years.admin_order_field = '-date_of_birth'

the '-' at the beginning of '-date_of_birth' indicates the reverse order in the changelist.
@wreckage wreckage Fixed #21924 -- added a test and documentation
Added a test and documentation for new feature: using
admin_order_field with a hyphen prefix on the field name to
indicate descending order (i.e. reversed order). Also fixed a

Great, I added an item to the 1.7 release notes, squashed the commits, and merged in f683cb9, thanks!

And oops.. just realized when I squashed the commits I left the author of the original commit and then also credited him in the commit message instead of you -- sorry about that.

@timgraham timgraham closed this Feb 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment