-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Product: set unit fields to default=''
- Loading branch information
1 parent
faecc0d
commit 2378c63
Showing
3 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
lfs/catalog/migrations/0007_alter_product_base_price_unit_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Generated by Django 5.1.5 on 2025-02-21 11:33 | ||
|
||
from django.db import migrations, models | ||
|
||
from lfs.catalog.models import LFS_BASE_PRICE_UNITS, LFS_PACKING_UNITS | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("catalog", "0006_alter_product_sku"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="product", | ||
name="base_price_unit", | ||
field=models.CharField( | ||
blank=True, | ||
choices=LFS_BASE_PRICE_UNITS, | ||
default="", | ||
max_length=30, | ||
verbose_name="Base price unit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="product", | ||
name="packing_unit_unit", | ||
field=models.CharField( | ||
blank=True, | ||
choices=LFS_PACKING_UNITS, | ||
default="", | ||
max_length=30, | ||
verbose_name="Packing unit", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="product", | ||
name="template", | ||
field=models.PositiveSmallIntegerField( | ||
blank=True, | ||
choices=[(0, "Default template"), (1, "Default template")], | ||
null=True, | ||
verbose_name="Product template", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters