Skip to content
Commit 05e0e467 authored by Julien Phalip's avatar Julien Phalip
Browse files

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.
parents 4024dd0c 0d1a9d20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment