Fix: made brand nullable

This commit is contained in:
Dirk Jahnke 2022-04-13 17:23:21 +02:00
parent bb978e29ce
commit e74fa36128
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.0.3 on 2022-04-13 14:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('asset', '0003_gtinproduct'),
]
operations = [
migrations.AlterField(
model_name='gtinproduct',
name='brand',
field=models.CharField(blank=True, max_length=40, null=True),
),
]

View File

@ -33,7 +33,7 @@ class GtinProduct(models.Model):
api_request = models.CharField(max_length=250)
api_response = models.CharField(max_length=4096)
name = models.CharField(max_length=200, blank=True)
brand = models.CharField(max_length=40, blank=True)
brand = models.CharField(max_length=40, blank=True, null=True)
created_ts = models.DateTimeField('datetime created', auto_now_add=True)
changed_ts = models.DateTimeField('datetime updated', auto_now=True)