-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make State/Region fields optional
- Loading branch information
1 parent
45707fb
commit 6f52d1b
Showing
2 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
cartridge/shop/migrations/0010_alter_discountcode_categories_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,61 @@ | ||
# Generated by Django 4.0.4 on 2022-05-04 12:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("shop", "0009_product_slug"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="discountcode", | ||
name="categories", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="%(class)s_related", | ||
to="shop.category", | ||
verbose_name="Categories", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="order", | ||
name="billing_detail_state", | ||
field=models.CharField( | ||
blank=True, max_length=100, verbose_name="State/Region" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="order", | ||
name="shipping_detail_state", | ||
field=models.CharField( | ||
blank=True, max_length=100, verbose_name="State/Region" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="product", | ||
name="related_products", | ||
field=models.ManyToManyField( | ||
blank=True, to="shop.product", verbose_name="Related products" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="product", | ||
name="upsell_products", | ||
field=models.ManyToManyField( | ||
blank=True, to="shop.product", verbose_name="Upsell products" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="sale", | ||
name="categories", | ||
field=models.ManyToManyField( | ||
blank=True, | ||
related_name="%(class)s_related", | ||
to="shop.category", | ||
verbose_name="Categories", | ||
), | ||
), | ||
] |
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