From 6916f60f3add1de311361b51797e8416888b9a4f Mon Sep 17 00:00:00 2001 From: youssef Date: Fri, 2 Nov 2018 11:40:10 +0100 Subject: [PATCH] Create registration slot when a slot is available --- .../models/golem_activity_registration_slot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golem_activity_registration_slot/models/golem_activity_registration_slot.py b/golem_activity_registration_slot/models/golem_activity_registration_slot.py index 332772f..79ba11f 100644 --- a/golem_activity_registration_slot/models/golem_activity_registration_slot.py +++ b/golem_activity_registration_slot/models/golem_activity_registration_slot.py @@ -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: