diff options
| author | Julien Phalip <jphalip@gmail.com> | 2014-11-16 12:25:05 +0100 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2014-11-16 12:25:05 +0100 |
| commit | 05e0e4674ce9995a1dc5962001747abce30e4f69 (patch) | |
| tree | 011c113a0b23314d2f9e554b253d6e4962256569 /django/db/models/sql/where.py | |
| parent | 4024dd0c98d71647b2001f186a92242314c987b2 (diff) | |
| parent | 0d1a9d203a970a82a2f81edf0ba7d4b55442fd78 (diff) | |
Merge pull request #3549 from psagers/master
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.
Diffstat (limited to 'django/db/models/sql/where.py')
0 files changed, 0 insertions, 0 deletions
