Skip to content

RemovedInDjango20Warning: DateTimePicker._format_value is deprecated, use format_value instead. #22

@dtomas

Description

@dtomas

The deprecation warning for DateTimePicker._format_value is still issued even though the method has been overridden. Seems to be due to the metaclass (RenameMethodsBase) wrapping it at class creation time.
Extending the metaclass and setting renamed_methods = () does not work, because all base classes are traversed, so their renamed_methods get added as well.

This is a problem when treating warnings as errors, i.e. to check for Django 2.0 forward compatibility of a project using Django 1.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions