diff --git a/ws/migrations/0055_discount_url_non_null.py b/ws/migrations/0055_discount_url_non_null.py new file mode 100644 index 00000000..e6665d7b --- /dev/null +++ b/ws/migrations/0055_discount_url_non_null.py @@ -0,0 +1,19 @@ +# Generated by Django 3.2.19 on 2023-06-18 16:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ws', '0054_allow_null_reminder_sent_at'), + ] + + operations = [ + migrations.AlterField( + model_name='discount', + name='url', + field=models.URLField(blank=True, default=''), + preserve_default=False, + ), + ] diff --git a/ws/models.py b/ws/models.py index df606ad5..49b92f66 100644 --- a/ws/models.py +++ b/ws/models.py @@ -129,7 +129,7 @@ class Discount(models.Model): name = models.CharField(max_length=255) summary = models.CharField(max_length=255) terms = models.TextField(max_length=4095) - url = models.URLField(null=True, blank=True) + url = models.URLField(blank=True) ga_key = models.CharField( max_length=63, # If blank, then we don't actually report this information to a spreadsheet