Skip to content

lock

django_spire.contrib.sync.django.models.lock

SyncNodeLock

Bases: Model

node_id = models.CharField(max_length=255, primary_key=True) class-attribute instance-attribute

updated_at = models.DateTimeField(auto_now=True) class-attribute instance-attribute

Meta

app_label = 'sync' class-attribute instance-attribute
db_table = 'django_spire_sync_node_lock' class-attribute instance-attribute

__str__

Source code in django_spire/contrib/sync/django/models/lock.py
def __str__(self) -> str:
    return f'lock:{self.node_id}'