Remove sku unique requirement

This commit is contained in:
Nathan Chapman 2022-11-07 21:00:44 -07:00
parent 3a5448f943
commit b9cbcfe923
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.0.2 on 2022-11-08 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0009_alter_productvariant_sku'),
]
operations = [
migrations.AlterField(
model_name='productvariant',
name='sku',
field=models.CharField(blank=True, max_length=255),
),
]

View File

@ -164,7 +164,7 @@ class ProductVariant(models.Model):
null=True null=True
) )
name = models.CharField(max_length=255) name = models.CharField(max_length=255)
sku = models.CharField(max_length=255, unique=True, blank=True) sku = models.CharField(max_length=255, blank=True)
stripe_id = models.CharField(max_length=255, blank=True) stripe_id = models.CharField(max_length=255, blank=True)
price = models.DecimalField( price = models.DecimalField(
max_digits=settings.DEFAULT_MAX_DIGITS, max_digits=settings.DEFAULT_MAX_DIGITS,