Esempio n. 1
0
 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()
Esempio n. 2
0
 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()