From 8ceb95f3f3131bc82337c630c2a08bd334019e43 Mon Sep 17 00:00:00 2001 From: youssef Date: Fri, 2 Nov 2018 02:00:57 +0100 Subject: [PATCH] small refactorings --- golem_activity_registration_slot/models/__init__.py | 2 +- golem_activity_registration_slot/models/golem_activity.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/golem_activity_registration_slot/models/__init__.py b/golem_activity_registration_slot/models/__init__.py index c9fb9ef..68b4abb 100644 --- a/golem_activity_registration_slot/models/__init__.py +++ b/golem_activity_registration_slot/models/__init__.py @@ -16,4 +16,4 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from . import golem_activity, golem_activity_registration_slot +from . import golem_activity, golem_activity_registration_slot, golem_activity_registration diff --git a/golem_activity_registration_slot/models/golem_activity.py b/golem_activity_registration_slot/models/golem_activity.py index 31dce94..c988bb6 100644 --- a/golem_activity_registration_slot/models/golem_activity.py +++ b/golem_activity_registration_slot/models/golem_activity.py @@ -29,3 +29,5 @@ class GolemActivity(models.Model): slots_duration = fields.Float(string='Registration Slot Duration') registration_slot_ids = fields.One2many('golem.activity.registration.slot', 'activity_id', string='Registration Slots') + + #@api.constrains('slots_number', 'slots_duration')