aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-11 19:44:36 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-11 19:44:36 +0100
commit392ed6017ab01250c1748bd0f2717d8db554115d (patch)
tree7d6152f9e640363dfae05b186f64d8acf552f7aa /ctrack/register/models.py
parent721c0e7e3056d6e14499b807cdc2837505c5ca18 (diff)
test for integrityerror when trying to create CAFTwinDateEvent with no start_date
Diffstat (limited to '')
-rw-r--r--ctrack/register/models.py4
1 files changed, 2 insertions, 2 deletions
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