Ticket #2727: gettext.diff
File gettext.diff, 640 bytes (added by , 18 years ago) |
---|
-
django/forms/__init__.py
343 343 def get_validation_errors(self, new_data): 344 344 errors = {} 345 345 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.')) 347 347 return errors 348 348 try: 349 349 for validator in self.validator_list: