-
Christos Stavrakakis authored
Previous implementation of 'select_for_update' method was based on an attribute of the 'ForUpdateManager'. However, the model manager is shared between all threads, which lead to race conditions. This commit reimplements 'select_for_update', by making it return a custom QuerySet (ForUpdateQuerySet), which overrides the 'get' and 'filter' methods.
fcd1bfb1