Allow diaper change without any contents (fixes #426)

This commit is contained in:
Marco H 2022-04-06 07:16:25 +02:00 committed by Christopher Charbonneau Wells
parent 5ba95b8cae
commit 3eba917b08
1 changed files with 0 additions and 6 deletions

View File

@ -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"