Changes between Initial Version and Version 1 of Ticket #5863, comment 35
- Timestamp:
- May 17, 2011, 5:11:40 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5863, comment 35
initial v1 4 4 2. Write a wrapper like @lukeplant suggested (even though it is far superior solution to individual functions in every model) 5 5 6 are all HUGE violation of DRY principles on which sensible programming is based toady. Since the parent__childsyntax is being used for list filter, search fields and everywhere else, why is the list_display so sacrosanct?6 are all HUGE violation of DRY principles on which sensible programming is based toady. Since the `parent__child` syntax is being used for list filter, search fields and everywhere else, why is the list_display so sacrosanct? 7 7 8 8 E.g. once a model field already has an attribute like verbose_name defined...why should a function or a wrapper function have to define it again. It is not feasible to copy that definition in the case of the wrapper.