Hi,

in one of my projects I would like to alter the inlines in the admin
on a per request basis. So I though I could use get_formsets to drop
unneeded inlines; this isn't the case :( get_formsets has to return
the same inlines in the correct order (eg
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L789
requires this). Maybe we could add a method like
get_formsets_with_inlines (better name anyone) which (by default)
would just return zip(self.get_formsets(request),
self.inline_instances). This would increase the usefulness of
get_formsets quite a bit imo. Any thoughts?

Cheers, Florian Apolloner

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@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.

Reply via email to