Hi all, I discovered yesterday that ModelAdmin does not display fields set in the __init__ of the custom form. This is due to django.contrib.admin.ModelAdmin.get_fieldsets only looking at the base_field variable of the form *class' instead of the form instance. This can be circumvented with a factory or by using a metaclass. I implemented a metaclass version of this just out of curiosity: https://gist.github.com/1370436
My question is that is this intended behavior or is the problem outside the scope of the django.contrib.admin? If it it is I'm fine with that, though I find it a bit confusing that the dynamic form field creation tips do not apply to forms used in admin. If it's not, I'm more than happy to look into the issue deeper and try to work a patch. However, the patch might be quite intrusive and change a lot of the internal behavior of the django.contrib.admin. Looking forward on your feedback! - Jyrki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.