From 8de2240642d3befda2277722364c1c33eddf5e82 Mon Sep 17 00:00:00 2001 From: palewire Date: Fri, 12 Jul 2024 10:36:16 -0400 Subject: [PATCH] Allow nulls too --- .../0029_alter_cvrf470cd_date_1000.py | 24 +++++++++++++++++++ calaccess_raw/models/inactive.py | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 calaccess_raw/migrations/0029_alter_cvrf470cd_date_1000.py diff --git a/calaccess_raw/migrations/0029_alter_cvrf470cd_date_1000.py b/calaccess_raw/migrations/0029_alter_cvrf470cd_date_1000.py new file mode 100644 index 00000000..eceb1292 --- /dev/null +++ b/calaccess_raw/migrations/0029_alter_cvrf470cd_date_1000.py @@ -0,0 +1,24 @@ +# Generated by Django 4.1.13 on 2024-07-12 14:35 + +import calaccess_raw.fields +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("calaccess_raw", "0028_remove_cvrf470cd_cand_adr1"), + ] + + operations = [ + migrations.AlterField( + model_name="cvrf470cd", + name="date_1000", + field=calaccess_raw.fields.DateField( + blank=True, + db_column="DATE_1000", + help_text="Date contributions totaling $1,000 or more. (For the 470-S)", + null=True, + ), + ), + ] diff --git a/calaccess_raw/models/inactive.py b/calaccess_raw/models/inactive.py index f5f92ff9..c1dfc3eb 100644 --- a/calaccess_raw/models/inactive.py +++ b/calaccess_raw/models/inactive.py @@ -138,6 +138,8 @@ class CvrF470Cd(CalAccessBaseModel): ) date_1000 = fields.DateField( db_column="DATE_1000", + blank=True, + null=True, help_text="Date contributions totaling $1,000 or more. (For the 470-S)", ) dist_no = fields.CharField(