diff options
| author | Peter Sagerson <psagers.github@ignorare.net> | 2014-11-15 11:31:09 -0800 |
|---|---|---|
| committer | Peter Sagerson <psagers.github@ignorare.net> | 2014-11-15 11:31:09 -0800 |
| commit | 0d1a9d203a970a82a2f81edf0ba7d4b55442fd78 (patch) | |
| tree | cf85eb7cef0cc0fb878b9eae66ebcb00190facf9 /docs/ref/models | |
| parent | d2d6c0c097072e2a8ece755fdc2d50c111104e7d (diff) | |
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
Diffstat (limited to 'docs/ref/models')
0 files changed, 0 insertions, 0 deletions
