X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/cd8813f7be8e11b18b7e23d217dd6404e26d07d4..7f6a254fcbc815339837a974f598f2ac69791e05:/curriculum/views.py?ds=inline diff --git a/curriculum/views.py b/curriculum/views.py index e5d30c7..25606f1 100644 --- a/curriculum/views.py +++ b/curriculum/views.py @@ -1,6 +1,9 @@ +# -*- coding: utf-8 from django.db import models from django.views.generic import DetailView, ListView from django.utils.datastructures import SortedDict +from django.utils.translation import ugettext as _ + from .models import Competence, Section, Level, CompetenceLevel @@ -45,9 +48,9 @@ class CompetencesView(ListView): if not (comp_ids or sect_ids): if level: - errors["competences"] = "Please!" + errors["competences"] = _('You must select at least one competency from the list.') elif level is None: - errors["level"] = "Please!" + errors["level"] = _('You must select at least one education level.') else: chosen_competences = SortedDict() for competence in Competence.objects.filter(