djangosnippets.org: Latest snippets posted by joaofrancesehttps://djangosnippets.org/users/joaofrancese/2012-06-13T15:06:03.187368-05:00joaofranceseSELECT FOR UPDATE in Django < 1.4
2012-06-13T15:06:03.187368-05:00joaofrancesehttps://djangosnippets.org/snippets/2766/<p>SELECT FOR UPDATE, which does row-level locking in the database, was added by Django only in version 1.4. This snippet emulates that feature in older versions of Django. Tested in Django 1.2, but should work in newer versions as well.</p>
<p>select_related is removed because it causes errors when used with …</p>
Freely redistributable