class Meta: model = Comment fields = ['body'] if MathJaxPagedownWidget is not None: widgets = { 'body': MathJaxPagedownWidget(attrs={'id': 'id-edit-comment-body'}) }
class Meta: model = Comment fields = ['title', 'body', 'parent'] widgets = { 'parent': forms.HiddenInput(), } if PagedownWidget is not None: widgets['body'] = MathJaxPagedownWidget(load_math=False)
class Meta: model = PrivateMessage fields = ['title', 'content'] widgets = {} if PagedownWidget is not None: widgets['content'] = MathJaxPagedownWidget()