#10826: items_for_result() in admin_list.py should be more field type agnostic ----------------------------------+----------------------------------------- Reporter: Rupe | Owner: nobody Status: new | Milestone: 1.0.3 Component: django.contrib.admin | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------------------+----------------------------------------- It would be helpful to add a format() method to the Field object so that items_for_result() in admin_list.py does not need to be modified when adding a field that needs special formating. The format method would output a formatted string output. If the format method was the fall back for setting the result_repr value in items_for_result() the IF statement could be simplified and my currency objects could be completely standalone without having to modify any Django code.
-- Ticket URL: <http://code.djangoproject.com/ticket/10826> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---