Changes between Version 2 and Version 3 of Ticket #30577, comment 9
- Timestamp:
- Jun 10, 2024, 3:54:38 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30577, comment 9
v2 v3 7 7 I'd like to be able to do the same without having to write that ugly and cumbersome code which as a side effect has to alter the field names inside the model admin `field` and `fieldsets` lists disruptively, breaking the rest of the code not aware of the renaming of those from `something` to `something_local`. 8 8 In my PoC I can't take advantage of the read_only field on widgets because I can't define an abstract admin form class that works for every subclass, because its subclass define DateTimeFields with different names and not every one of them is read only potentially. 9 What I need is something that allows me to customize the display of readonly field based on their type that is only used if they are read only for whatever reason, including permissions.9 What I need is something that allows me to customize the display of readonly field based on their type that is only used if they are read only for whatever reason, including because of missing permissions. 10 10 11 11 Example of possible API to solve the problem: