Ticket #7816: patch-7816.diff

File patch-7816.diff, 1.7 KB (added by Leah Culver, 16 years ago)

corrected location of SimpleUploadedFile in deprecation warnings

  • django/db/models/base.py

     
    488488            import warnings
    489489            warnings.warn(
    490490                message = "Representing uploaded files as dictionaries is"\
    491                           " deprecated. Use django.core.files.SimpleUploadedFile"\
     491                          " deprecated. Use django.core.files.uploadedfile.SimpleUploadedFile"\
    492492                          " instead.",
    493493                category = DeprecationWarning,
    494494                stacklevel = 2
     
    500500            import warnings
    501501            warnings.warn(
    502502                message = "Representing uploaded files as strings is "\
    503                           " deprecated. Use django.core.files.SimpleUploadedFile "\
     503                          " deprecated. Use django.core.files.uploadedfile.SimpleUploadedFile "\
    504504                          " instead.",
    505505                category = DeprecationWarning,
    506506                stacklevel = 2
  • django/newforms/fields.py

     
    443443            import warnings
    444444            warnings.warn(
    445445                message = "Representing uploaded files as dictionaries is"\
    446                           " deprecated. Use django.core.files.SimpleUploadedFile "\
     446                          " deprecated. Use django.core.files.uploadedfile.SimpleUploadedFile "\
    447447                          " instead.",
    448448                category = DeprecationWarning,
    449449                stacklevel = 2
Back to Top