summaryrefslogtreecommitdiff
path: root/docs/ref/forms/fields.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2009-02-27 05:00:38 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2009-02-27 05:00:38 +0000
commit424d158b01a1aeb4cb2104f93a4aa4789882a192 (patch)
treea1e40f05917ae1bdfc8475581ffd343cb0c87f78 /docs/ref/forms/fields.txt
parentf799959008b95f0e770ab35096de5b86659a962d (diff)
[1.0.X] Invalidate the appropriate SITE_CACHE entry when saving a Site model.
This avoids the problem of, for example, saving a change to the Site model in the admin interface and then seeing the wrong instanec returned in the next call to get_current_site(). It's still possible to end up with an inconsistent cache if update() is used to change the Site model, but that's pretty unavoidable. It's also a slightly odd way to update a Site model, so if you really need to do that, you can manage to call SiteManager.clear() at the same time. Backport of r9908 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms/fields.txt')
0 files changed, 0 insertions, 0 deletions