mirror of
https://github.com/django/django.git
synced 2025-01-26 18:19:18 +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.