Allow availability_updated field to be blank

This commit is contained in:
Oliver Walters 2022-06-08 08:04:31 +10:00
parent 59fb2ac21f
commit 427f85cc94
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 3.2.13 on 2022-06-06 14:34 # Generated by Django 3.2.13 on 2022-06-07 22:04
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models
@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='supplierpart', model_name='supplierpart',
name='availability_updated', name='availability_updated',
field=models.DateTimeField(help_text='Date of last update of availability data', null=True, verbose_name='Availability Updated'), field=models.DateTimeField(blank=True, help_text='Date of last update of availability data', null=True, verbose_name='Availability Updated'),
), ),
migrations.AddField( migrations.AddField(
model_name='supplierpart', model_name='supplierpart',

View File

@ -536,7 +536,7 @@ class SupplierPart(models.Model):
) )
availability_updated = models.DateTimeField( availability_updated = models.DateTimeField(
null=True, verbose_name=_('Availability Updated'), null=True, blank=True, verbose_name=_('Availability Updated'),
help_text=_('Date of last update of availability data'), help_text=_('Date of last update of availability data'),
) )