From 392ed6017ab01250c1748bd0f2717d8db554115d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 11 Oct 2020 19:44:36 +0100 Subject: test for integrityerror when trying to create CAFTwinDateEvent with no start_date --- ctrack/register/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctrack/register/models.py') diff --git a/ctrack/register/models.py b/ctrack/register/models.py index 53b65a0..e4dea89 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -107,8 +107,8 @@ class SingleDateMixin(models.Model): class TwinDateMixin(models.Model): - start_date = models.DateField() - end_date = models.DateField() + start_date = models.DateField(blank=False, null=False) + end_date = models.DateField(blank=True, null=True) class Meta: abstract = True -- cgit v1.2.3