The documentation of ModelAdmin.get_form()[1] demonstrates modifying 
self.exclude in order to modify the add/change form on a per-request basis. 
However, looking at django.contrib.admin, it seems clear that ModelAdmin is 
instantiated when it's installed, not for every request. It also doesn't 
appear to be a subclass of threading.local. Is there some reason this isn't 
a terrible idea or is the example just in error?

Thanks,
Peter


[1] 
https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_form

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06fc9478-c3ac-4ba4-ba18-2ea59c7767f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to