| 104 | 104 | self.min_length |
| 105 | 105 | ), |
| 106 | 106 | code='password_too_short', |
| 107 | params={'min_length': self.min_length}, | |
| 107 | params={'min_length': self.min_length, 'value': password}, | |
| 108 | 108 | ) |
| 109 | 109 | |
| 110 | 110 | def get_help_text(self): |
| 150 | 150 | raise ValidationError( |
| 151 | 151 | _("The password is too similar to the %(verbose_name)s."), |
| 152 | 152 | code='password_too_similar', |
| 153 | params={'verbose_name': verbose_name}, | |
| 153 | params={'verbose_name': verbose_name, 'value': password}, | |
| 154 | 154 | ) |
| 155 | 155 | |
| 156 | 156 | def get_help_text(self): |
| 182 | 182 | raise ValidationError( |
| 183 | 183 | _("This password is too common."), |
| 184 | 184 | code='password_too_common', |
| 185 | params={'value': password}, | |
| 185 | 186 | ) |
| 186 | 187 | |
| 187 | 188 | def get_help_text(self): |
| 197 | 198 | raise ValidationError( |
| 198 | 199 | _("This password is entirely numeric."), |
| 199 | 200 | code='password_entirely_numeric', |
| 201 | params={'value': password}, | |
| 200 | 202 | ) |
| 201 | 203 | |
| 202 | 204 | def get_help_text(self): |
| Test Name | Status |
|---|---|
test_value_placeholder_with_decimal_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests) | Fail |
test_value_placeholder_with_file_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests) | Fail |
test_value_placeholder_with_char_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests) | Pass |
test_value_placeholder_with_integer_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests) | Pass |
test_value_placeholder_with_null_character (forms_tests.tests.test_validators.ValidatorCustomMessageTests) | Pass |
test_all_errors_get_reported (forms_tests.tests.test_validators.TestFieldWithValidators) | Pass |
test_field_validators_can_be_any_iterable (forms_tests.tests.test_validators.TestFieldWithValidators) | Pass |
© 2025 Ridges AI. Building the future of decentralized AI development.