forums.forms module¶
-
class
forums.forms.
ForumForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
forums.models.Forum
-
fields
= ['name', 'slug', 'description', 'publicly_visible', 'moderators', 'parent_content_type', 'parent_object_id']¶
-
-
base_fields
= {'description': <django.forms.fields.CharField object>, 'moderators': <django.forms.models.ModelMultipleChoiceField object>, 'name': <django.forms.fields.CharField object>, 'parent_content_type': <django.forms.models.ModelChoiceField object>, 'parent_object_id': <django.forms.fields.IntegerField object>, 'publicly_visible': <django.forms.fields.BooleanField object>, 'slug': <django.forms.fields.SlugField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
forums.forms.
MeetingForm
(*args, **kwargs)[source]¶ Bases:
forums.forms.ForumForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
forums.models.Meeting
-
fields
= ['name', 'slug', 'description', 'publicly_visible', 'moderators', 'parent_content_type', 'parent_object_id', 'date_from', 'date_until', 'preamble']¶
-
-
base_fields
= {'date_from': <django.forms.fields.DateField object>, 'date_until': <django.forms.fields.DateField object>, 'description': <django.forms.fields.CharField object>, 'moderators': <django.forms.models.ModelMultipleChoiceField object>, 'name': <django.forms.fields.CharField object>, 'parent_content_type': <django.forms.models.ModelChoiceField object>, 'parent_object_id': <django.forms.fields.IntegerField object>, 'preamble': <django.forms.fields.CharField object>, 'publicly_visible': <django.forms.fields.BooleanField object>, 'slug': <django.forms.fields.SlugField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
forums.forms.
ForumGroupPermissionsForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.models.ModelForm
Used for granting specific Groups some rights to a given Forum.
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
forums.models.Forum
-
fields
= []¶
-
-
base_fields
= {'can_post': <django.forms.fields.BooleanField object>, 'can_view': <django.forms.fields.BooleanField object>, 'groups': <django.forms.models.ModelMultipleChoiceField object>}¶
-
declared_fields
= {'can_post': <django.forms.fields.BooleanField object>, 'can_view': <django.forms.fields.BooleanField object>, 'groups': <django.forms.models.ModelMultipleChoiceField object>}¶
-
property
media
¶
-
class
-
class
forums.forms.
ForumOrganizationPermissionsForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
-
base_fields
= {'can_post': <django.forms.fields.BooleanField object>, 'can_view': <django.forms.fields.BooleanField object>, 'organization': <django.forms.models.ModelChoiceField object>}¶
-
declared_fields
= {'can_post': <django.forms.fields.BooleanField object>, 'can_view': <django.forms.fields.BooleanField object>, 'organization': <django.forms.models.ModelChoiceField object>}¶
-
property
media
¶
-
-
class
forums.forms.
PostForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
Create a new Post. The parent must be defined, the model class and instance being defined by url parameters.
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
forums.models.Post
-
fields
= ['posted_by', 'posted_on', 'needs_vetting', 'parent_content_type', 'parent_object_id', 'subject', 'text']¶
-
-
base_fields
= {'needs_vetting': <django.forms.fields.BooleanField object>, 'parent_content_type': <django.forms.models.ModelChoiceField object>, 'parent_object_id': <django.forms.fields.IntegerField object>, 'posted_by': <django.forms.models.ModelChoiceField object>, 'posted_on': <django.forms.fields.DateTimeField object>, 'subject': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
forums.forms.
MotionForm
(*args, **kwargs)[source]¶ Bases:
forums.forms.PostForm
Form for creating a Motion to be voted on in a Forum or during a Meeting.
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
forums.models.Motion
-
fields
= ['posted_by', 'posted_on', 'needs_vetting', 'parent_content_type', 'parent_object_id', 'subject', 'text', 'eligible_for_voting', 'voting_deadline']¶
-
-
base_fields
= {'eligible_for_voting': <django.forms.models.ModelMultipleChoiceField object>, 'needs_vetting': <django.forms.fields.BooleanField object>, 'parent_content_type': <django.forms.models.ModelChoiceField object>, 'parent_object_id': <django.forms.fields.IntegerField object>, 'posted_by': <django.forms.models.ModelChoiceField object>, 'posted_on': <django.forms.fields.DateTimeField object>, 'subject': <django.forms.fields.CharField object>, 'text': <django.forms.fields.CharField object>, 'voting_deadline': <django.forms.fields.DateField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class