Skip to content

deferred_backfill

django_spire.contrib.sync.django.models.deferred_backfill

SyncDeferredBackfill

Bases: Model

model_label = models.CharField(max_length=255) class-attribute instance-attribute

record_key = models.CharField(max_length=255) class-attribute instance-attribute

attname = models.CharField(max_length=255) class-attribute instance-attribute

fk_value = models.CharField(max_length=255) class-attribute instance-attribute

created_at = models.DateTimeField(auto_now_add=True) class-attribute instance-attribute

Meta

app_label = 'sync' class-attribute instance-attribute
db_table = 'django_spire_sync_deferred_backfill' class-attribute instance-attribute
unique_together = [('model_label', 'record_key', 'attname')] class-attribute instance-attribute
indexes = [models.Index(fields=['model_label'], name='sync_deferred_bf_idx')] class-attribute instance-attribute

__str__

Source code in django_spire/contrib/sync/django/models/deferred_backfill.py
def __str__(self) -> str:
    return (
        f'{self.model_label}:{self.record_key} '
        f'{self.attname}={self.fk_value}'
    )