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:29 +0100 |
| commit | 2e7ca0994013c4238e00fd3d126f89ad3bc21b86 (patch) | |
| tree | c8858838b3cb60611d913f23bcebdaaf181d9d39 /scripts | |
| parent | 7323e15d872058ff4519f2c294507b16c9df7c9b (diff) | |
[1.6.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 'scripts')
0 files changed, 0 insertions, 0 deletions
