oioioi.forum.forms

Module Contents

Classes

PostForm

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

NewThreadForm

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

BanForm

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

ReportForm

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

class oioioi.forum.forms.PostForm(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]
class oioioi.forum.forms.NewThreadForm(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 = ['name'][source]
content[source]
class oioioi.forum.forms.BanForm(*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 = ['reason'][source]
delete_reports[source]
class oioioi.forum.forms.ReportForm(*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 = ['report_reason'][source]