class Media: js = editors.getEditorClass().AdminMedia.js css = editors.getEditorClass().AdminMedia.css
def __init__(self, *args, **kwargs): super(ArticleRevisionForm, self).__init__(*args, **kwargs) # TODO: This pattern is too weird EditorClass = editors.getEditorClass() editor = editors.getEditor() self.fields['content'].widget = editor.get_admin_widget()
def __init__(self, *args, **kwargs): super(ArticleRevisionForm, self).__init__(*args, **kwargs) # TODO: This pattern is too weird EditorClass = editors.getEditorClass() editor = editors.getEditor() self.fields['content'].widget = editor.get_admin_widget()