From 3eba917b083bfde1289b0d9a138443cf62a21b07 Mon Sep 17 00:00:00 2001 From: Marco H Date: Wed, 6 Apr 2022 07:16:25 +0200 Subject: [PATCH] Allow diaper change without any contents (fixes #426) --- core/models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/models.py b/core/models.py index 11f21d3a..bd47b70c 100644 --- a/core/models.py +++ b/core/models.py @@ -303,12 +303,6 @@ class DiaperChange(models.Model): def clean(self): validate_time(self.time, "time") - # One or both of Wet and Solid is required. - if not self.wet and not self.solid: - raise ValidationError( - _("Wet and/or solid is required."), code="wet_or_solid" - ) - class Feeding(models.Model): model_name = "feeding"