oioioi.dashboard.forms

Module Contents

Classes

DashboardMessageForm

The main implementation of all the Form logic. Note that this class is

class oioioi.dashboard.forms.DashboardMessageForm(request, *args, **kwargs)[source]

Bases: 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.

class Meta[source]

Bases: object

model[source]
fields = ['content'][source]
allowed_tags = ['a', 'abbr', 'acronym', 'article', 'b', 'blockquote', 'br', 'center', 'code', 'em', 'font',...[source]
allowed_attributes[source]
tag_as_str(tag)[source]
clean_content()[source]
save(commit=True, *args, **kwargs)[source]

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.