From f314c3a76fff3889438fab79fe1beab042055e2c Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 1 Feb 2018 17:26:47 +0100 Subject: [PATCH] [TMP] Text msg check_period --- golem_activity/models/golem_activity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/golem_activity/models/golem_activity.py b/golem_activity/models/golem_activity.py index f8563d0..750e97b 100644 --- a/golem_activity/models/golem_activity.py +++ b/golem_activity/models/golem_activity.py @@ -113,12 +113,12 @@ class GolemActivity(models.Model): raise models.ValidationError(_('Start of the period cannot be ' 'after end of the period.')) if activity.season_id.date_start > activity.date_start: - msg = _(u'The start date of the activity is not in range of an ' - 'existing period.') + msg = _(u'Activity start date can not be set before ' + 'linked season start.') raise models.ValidationError(msg) if activity.season_id.date_end < activity.date_stop: - msg = _(u'The end date of the activity is not in range of an ' - 'existing period.') + msg = _(u'Activity end date can not be set after ' + 'linked season start.') raise models.ValidationError(msg) @api.onchange('season_id')