I want to make some advanced customization of admin form.
While editing an object, I want to show, dynamically, different fields depending of 1 obj field (they are not visible while adding the obj.). There can be a situation, to validate that extra fields. For example, when object has a 'temporary' type, I must show 2 fields with dates, and validate them. If object is 'renewable' I need to show 2 different fields with different validation. What is the best approach to do that? - Make separate Form for each object type and set form attrib of ModelAdmin? If yes, in whichModelAdmin method do that (change_view()?)? - Dynamically update fields<https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fields> in get_form() method? What is the best approach to do that? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.