fix
This commit is contained in:
18
core/apps/products/migrations/0008_alter_product_code.py
Normal file
18
core/apps/products/migrations/0008_alter_product_code.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2 on 2025-09-06 14:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('products', '0007_product_quantity_left'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='product',
|
||||
name='code',
|
||||
field=models.CharField(blank=True, max_length=200, null=True),
|
||||
),
|
||||
]
|
||||
@@ -24,7 +24,7 @@ class Product(BaseModel):
|
||||
unity = models.ForeignKey(Unity, on_delete=models.CASCADE, related_name='products', null=True)
|
||||
tg_id = models.CharField(max_length=50, null=True, blank=True)
|
||||
article = models.CharField(max_length=200, null=True, blank=True, unique=True)
|
||||
code = models.CharField(max_length=200, unique=True, null=True, blank=True)
|
||||
code = models.CharField(max_length=200, null=True, blank=True)
|
||||
quantity_left = models.PositiveBigIntegerField(default=0)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user