Обновления в inventory: модели, миграции и удаление старых миграций

This commit is contained in:
2026-01-08 22:11:23 +03:00
parent 1069039953
commit 2d1f8b78ad
6 changed files with 27 additions and 87 deletions

View File

@@ -463,7 +463,7 @@ class Reservation(models.Model):
help_text="Время истечения блокировки в корзине (для витринных комплектов)"
)
locked_by_user = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True, blank=True,
related_name='cart_locks',
@@ -626,7 +626,7 @@ class ShowcaseItem(models.Model):
# === SOFT LOCK для корзины ===
locked_by_user = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,
@@ -1087,7 +1087,7 @@ class WriteOffDocument(models.Model):
# Аудит
created_by = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,
@@ -1096,7 +1096,7 @@ class WriteOffDocument(models.Model):
)
confirmed_by = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,
@@ -1317,7 +1317,7 @@ class IncomingDocument(models.Model):
# Аудит
created_by = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,
@@ -1326,7 +1326,7 @@ class IncomingDocument(models.Model):
)
confirmed_by = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,
@@ -1491,7 +1491,7 @@ class Transformation(models.Model):
)
employee = models.ForeignKey(
settings.AUTH_USER_MODEL,
'accounts.CustomUser',
on_delete=models.SET_NULL,
null=True,
blank=True,