Create registration slot when a slot is available

This commit is contained in:
Youssef Elouahby 2018-11-02 11:40:10 +01:00
parent 42cec4f0e1
commit 6916f60f3a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class GolemActivityRegistrationSlot(models.Model):
@api.constrains('hour_start', 'hour_stop')
def check_slot_hours(self):
""" Check slot hours consistence """
""" Check slot hours consistency """
for slot in self:
if slot.hour_start < slot.activity_id.hour_start or \
slot.hour_stop > slot.activity_id.hour_stop: