From 03e56bd8e3fc9f2326bfc11ce1a06a52b1a06cc7 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 29 Jan 2018 22:56:08 +0100 Subject: [PATCH] [TMP] Check the date start ans date end related to season date --- golem_activity/models/golem_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golem_activity/models/golem_activity.py b/golem_activity/models/golem_activity.py index b9a26e8..26582dc 100644 --- a/golem_activity/models/golem_activity.py +++ b/golem_activity/models/golem_activity.py @@ -110,7 +110,7 @@ class GolemActivity(models.Model): msg = _(u'End of the period is in range of an ' 'existing period.') raise models.ValidationError(msg) - +git @api.onchange('season_id') def _onchange_season_dates(self): """ Sets defaults dates according to season """