Fixed #9073 -- Fixed a unit test that broke after [9002]. Thanks, kratorius
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
af23d8d3b3
commit
8efeaea9dd
|
@ -549,7 +549,7 @@ ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields' refers to f
|
||||||
>>> validate(ValidationTestModelAdmin, ValidationTestModel)
|
>>> validate(ValidationTestModelAdmin, ValidationTestModel)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields['non_existent_field'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'.
|
ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields['slug'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'.
|
||||||
|
|
||||||
>>> class ValidationTestModelAdmin(ModelAdmin):
|
>>> class ValidationTestModelAdmin(ModelAdmin):
|
||||||
... prepopulated_fields = {"users": ("name",)}
|
... prepopulated_fields = {"users": ("name",)}
|
||||||
|
|
Loading…
Reference in New Issue