Changes between Version 2 and Version 3 of Ticket #30577, comment 9


Ignore:
Timestamp:
Jun 10, 2024, 3:54:38 AM (4 months ago)
Author:
ldeluigi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30577, comment 9

    v2 v3  
    77I'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`.
    88In 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.
     9What 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.
    1010
    1111Example of possible API to solve the problem:
Back to Top