Ticket #9073: fix-9002-tests.diff

File fix-9002-tests.diff, 818 bytes (added by Ivan Giuliani, 16 years ago)
  • tests/regressiontests/modeladmin/models.py

     
    549549>>> validate(ValidationTestModelAdmin, ValidationTestModel)
    550550Traceback (most recent call last):
    551551...
    552 ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields['non_existent_field'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'.
     552ImproperlyConfigured: 'ValidationTestModelAdmin.prepopulated_fields['slug'][0]' refers to field 'non_existent_field' that is missing from model 'ValidationTestModel'.
    553553
    554554>>> class ValidationTestModelAdmin(ModelAdmin):
    555555...     prepopulated_fields = {"users": ("name",)}
Back to Top