'During form initialization, some widgets have to be replaced by a counterpart suitable to
be rendered the AngularJS way.'

def convert_widgets(self):

    warnings.warn(u'Will    be    removed    after    dropping    support    for    Django-1.10', PendingDeprecationWarning)
    for field in self.base_fields.values():
        if hasattr(field, u'get_converted_widget'):
            new_widget = field.get_converted_widget()
            if new_widget:
                field.widget = new_widget
