From c01733e87caa0290b600ae324dd9752eb74f203f Mon Sep 17 00:00:00 2001 From: Gustavo Date: Wed, 22 Mar 2017 11:59:24 -0300 Subject: [PATCH] Fix'd the error message in YouTube video resource --- youtube_video/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_video/forms.py b/youtube_video/forms.py index a66941c..7d62fd7 100644 --- a/youtube_video/forms.py +++ b/youtube_video/forms.py @@ -59,7 +59,7 @@ class YTVideoForm(forms.ModelForm): same_name = topic.resource_topic.filter(name__unaccent__iexact = name).count() if same_name > 0: - self._errors['name'] = [_('This subject already has a youtube video with this name')] + self._errors['name'] = [_('This subject already has a resource with this name')] return ValueError -- libgit2 0.21.2