Ticket #9073: fix-9002-tests.diff
File fix-9002-tests.diff, 818 bytes (added by , 16 years ago) |
---|
-
tests/regressiontests/modeladmin/models.py
549 549 >>> validate(ValidationTestModelAdmin, ValidationTestModel) 550 550 Traceback (most recent call last): 551 551 ... 552 ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields[' non_existent_field'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'.552 ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields['slug'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'. 553 553 554 554 >>> class ValidationTestModelAdmin(ModelAdmin): 555 555 ... prepopulated_fields = {"users": ("name",)}