Ticket #8957: 8957-expected-result-patch.diff

File 8957-expected-result-patch.diff, 818 bytes (added by Tom Mortimer-Jones, 11 years ago)

Patch

  • 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