diff options
| author | Peter Sagerson <psagers.github@ignorare.net> | 2014-11-15 11:31:09 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-16 14:33:14 +0100 |
| commit | 42001e027c71d449bf6919a1758647e9901c32d8 (patch) | |
| tree | 8e729c8965231e28f05c5e2d691480ef0cf8a933 /docs/ref/forms | |
| parent | 7796f62c36555569125f8bb00cfb8b84b6da4eec (diff) | |
[1.7.x] Fixes a race condition in the documentation.
The example for django.contrib.admin.ModelAdmin.get_form modifies
self.exclude. However, since ModelAdmin instances are global and have no
thread- or request-locality, this is not safe for concurrent
requests.[1] This updated documentation demonstrates a safe method to
override admin forms on a per-request basis.
[1] https://groups.google.com/forum/#!topic/django-users/AmoUDtEefyA
Backport of 0d1a9d203a970a82a2f81edf0ba7d4b55442fd78 from master
Diffstat (limited to 'docs/ref/forms')
0 files changed, 0 insertions, 0 deletions
