forms.Widget.format_value()

format_value(value)

Cleans and returns a value for use in the widget template. value isn’t guaranteed to be valid input, therefore subclass implementations should program defensively.

Changed in Django 1.10:

In older versions, this method is a private API named _format_value(). The old name will work until Django 2.0.

doc_Django
2016-10-09 18:37:12
Comments
Leave a Comment

Please login to continue.