Skip to content

Commit

Permalink
Use the correct input in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuriekkinen committed Feb 9, 2021
1 parent e9ac52f commit 60d87aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def clean(self):
if self.instance_name in RESERVED:
errors['instance_name'] = format_lazy(_("You cannot use word '{}' as an instance name."), self.instance_name)
if self.url in RESERVED:
errors['url'] = format_lazy(_("You cannot use word '{}' in the url."), self.instance_name)
errors['url'] = format_lazy(_("You cannot use word '{}' in the url."), self.url)
if self.ending_time <= self.starting_time:
errors['ending_time'] = _("Ending time must be later than starting time.")
if self.lifesupport_time and self.lifesupport_time < self.ending_time:
Expand Down

0 comments on commit 60d87aa

Please sign in to comment.