djblets.db.managers¶
Managers for Django database models.
- class ConcurrencyManager(*args, **kwargs)[source]¶
Bases:
ClassDeprecatedMixin
,Manager
A Django manager designed to work around database concurrency issues.
This was used in very old versions of Django where the
get_or_create()
method could raise IntegrityErrors due to concurrency. Since Django 1.0, the regular Manager has protections against this.Deprecated since version 6.0: Because this is no longer necessary, this class has been deprecated and will be removed in Djblets 8.0. Any subclasses should change to just inherit from
django.db.models.Manager
.- __annotations__ = {}¶