(self, unique_check)
| 922 | raise ValidationError(errors) |
| 923 | |
| 924 | def get_unique_error_message(self, unique_check): |
| 925 | if len(unique_check) == 1: |
| 926 | return gettext("Please correct the duplicate data for %(field)s.") % { |
| 927 | "field": unique_check[0], |
| 928 | } |
| 929 | else: |
| 930 | return gettext( |
| 931 | "Please correct the duplicate data for %(field)s, which must be unique." |
| 932 | ) % { |
| 933 | "field": get_text_list(unique_check, _("and")), |
| 934 | } |
| 935 | |
| 936 | def get_date_error_message(self, date_check): |
| 937 | return gettext( |
no test coverage detected