mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to refer to correct field.
Thanks Tim Graham for suggestion and review.
This commit is contained in:
parent
27ee608b55
commit
10e83d48a3
4 changed files with 19 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ class ModelToValidate(models.Model):
|
|||
number = models.IntegerField(db_column='number_val')
|
||||
parent = models.ForeignKey('self', blank=True, null=True, limit_choices_to={'number': 10})
|
||||
email = models.EmailField(blank=True)
|
||||
ufm = models.ForeignKey('UniqueFieldsModel', to_field='unique_charfield', blank=True, null=True)
|
||||
url = models.URLField(blank=True)
|
||||
f_with_custom_validator = models.IntegerField(blank=True, null=True, validators=[validate_answer_to_universe])
|
||||
slug = models.SlugField(blank=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue