def convert_widgets(self):
warnings.warn("<STR_LIT>", PendingDeprecationWarning)<EOL>widgets_module = getattr(self, '<STR_LIT>', '<STR_LIT>')<EOL>for field in self.base_fields.values():<EOL><INDENT>if hasattr(field, '<STR_LIT>'):<EOL><INDENT>new_widget = field.get_converted_widget(widgets_module)<EOL>if new_widget:<EOL><INDENT>field.widget = new_widget<EOL><DEDENT><DEDENT><DEDENT>
During form initialization, some widgets have to be replaced by a counterpart suitable to
be rendered the AngularJS way.