mirror of https://github.com/snachodog/mybuddy.git
Allow end of feeding to be in the future
This commit is contained in:
parent
379f9b1e86
commit
603a429c13
|
@ -346,7 +346,6 @@ class Feeding(models.Model):
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
validate_time(self.start, "start")
|
validate_time(self.start, "start")
|
||||||
validate_time(self.end, "end")
|
|
||||||
validate_duration(self)
|
validate_duration(self)
|
||||||
validate_unique_period(Feeding.objects.filter(child=self.child), self)
|
validate_unique_period(Feeding.objects.filter(child=self.child), self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue