:py:mod:`oioioi.dashboard.forms` ================================ .. py:module:: oioioi.dashboard.forms Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.dashboard.forms.DashboardMessageForm .. py:class:: DashboardMessageForm(request, *args, **kwargs) Bases: :py:obj:`django.forms.ModelForm` The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class. .. py:class:: Meta Bases: :py:obj:`object` .. py:attribute:: model .. py:attribute:: fields :annotation: = ['content'] .. py:attribute:: allowed_tags :annotation: = ['a', 'abbr', 'acronym', 'article', 'b', 'blockquote', 'br', 'center', 'code', 'em', 'font',... .. py:attribute:: allowed_attributes .. py:method:: tag_as_str(tag) .. py:method:: clean_content() .. py:method:: save(commit=True, *args, **kwargs) Save this form's self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.