mirror of
https://github.com/django/django.git
synced 2024-12-27 11:35:53 +00:00
05e0e4674c
Fixes a race condition in the documentation. The example for django.contrib.admin.ModelAdmin.get_form was modifying self.exclude. However, since ModelAdmin instances are global and have no thread- or request-locality, this is not safe for concurrent requests. This updated documentation demonstrates a safe method to override admin forms on a per-request basis. |
||
---|---|---|
.. | ||
admin | ||
formtools | ||
gis | ||
postgres | ||
auth.txt | ||
contenttypes.txt | ||
flatpages.txt | ||
humanize.txt | ||
index.txt | ||
messages.txt | ||
redirects.txt | ||
sitemaps.txt | ||
sites.txt | ||
staticfiles.txt | ||
syndication.txt | ||
webdesign.txt |