Django

Code

Ticket #2029 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] Fix sorting models by verbose_name_plural in get_admin_app_list template tag

Reported by: Alex Dedul Assigned to: adrian
Milestone: Component: Admin interface
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Now it sorts models just by doing model_list.sort() and it don't work when you have custom verbose_name_plural set in your model, for example in UserProfile? model verbose_name_plural set to 'address book'. Patch below fixes this to correctly sort based on verbose_name_plural.

Attachments

admin_model_list_sort_by_name.patch (1.0 kB) - added by Alex Dedul on 05/29/06 04:44:36.
admin_model_list_sort_by_name_fixed_typo.patch (1.0 kB) - added by Alex Dedul on 05/29/06 04:53:49.
Fixed typo in comments

Change History

05/29/06 04:44:36 changed by Alex Dedul

  • attachment admin_model_list_sort_by_name.patch added.

05/29/06 04:53:49 changed by Alex Dedul

  • attachment admin_model_list_sort_by_name_fixed_typo.patch added.

Fixed typo in comments

05/29/06 06:02:34 changed by lukeplant

  • status changed from new to closed.
  • resolution set to fixed.

(In [2999]) Fixed #2029 - models now sorted by verbose_name_plural in get_admin_app_list - thanks Alex Dedul.

06/12/06 05:47:14 changed by Here

  • type deleted.

Add/Change #2029 ([patch] Fix sorting models by verbose_name_plural in get_admin_app_list template tag)




Change Properties
Action