Ticket #2727: gettext.diff

File gettext.diff, 640 bytes (added by Michael Samoylov, 13 years ago)

Use gettext instead of gettext_lazy. Thanks, Ivan Sagalaev (Maniac@…)

  • django/forms/__init__.py

     
    343343    def get_validation_errors(self, new_data):
    344344        errors = {}
    345345        if self.is_required and not new_data.get(self.field_name, False):
    346             errors.setdefault(self.field_name, []).append(gettext_lazy('This field is required.'))
     346            errors.setdefault(self.field_name, []).append(gettext('This field is required.'))
    347347            return errors
    348348        try:
    349349            for validator in self.validator_list:
Back to Top