I have a ModelAdmin class. Sometimes, I want it to include a certain field in the fieldsets, and sometimes I don't (whether it does or not would be the result of a calculation on the instance that is being edited in the admin).
How can I make the fieldsets attribute a calculated value, calculated each time a different instance is loaded in the admin? Another example: I might want a certain field to be a readonly_field - sometimes. Is this possible? I have a feeling it won't be, because: * attributes like fieldsets and readonly_fields are set up in the __init__() * once set up, they don't seem modifiable * the __init__() doesn't have access to the instance, so use that to determine the attributes Daniele -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.