comments.forms module¶
-
class
comments.forms.
CommentForm
(*args, **kwargs)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
model
¶ alias of
comments.models.Comment
-
fields
= ['is_cor', 'is_rem', 'is_que', 'is_ans', 'is_obj', 'is_rep', 'is_val', 'is_lit', 'is_sug', 'comment_text', 'remarks_for_editors', 'file_attachment', 'anonymous']¶
-
-
base_fields
= {'anonymous': <django.forms.fields.BooleanField object>, 'comment_text': <django.forms.fields.CharField object>, 'file_attachment': <django.forms.fields.FileField object>, 'is_ans': <django.forms.fields.BooleanField object>, 'is_cor': <django.forms.fields.BooleanField object>, 'is_lit': <django.forms.fields.BooleanField object>, 'is_obj': <django.forms.fields.BooleanField object>, 'is_que': <django.forms.fields.BooleanField object>, 'is_rem': <django.forms.fields.BooleanField object>, 'is_rep': <django.forms.fields.BooleanField object>, 'is_sug': <django.forms.fields.BooleanField object>, 'is_val': <django.forms.fields.BooleanField object>, 'remarks_for_editors': <django.forms.fields.CharField object>}¶
-
declared_fields
= {}¶
-
property
media
¶
-
class
-
class
comments.forms.
VetCommentForm
(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
= {'action_option': <django.forms.fields.ChoiceField object>, 'email_response_field': <django.forms.fields.CharField object>, 'refusal_reason': <django.forms.fields.ChoiceField object>}¶
-
declared_fields
= {'action_option': <django.forms.fields.ChoiceField object>, 'email_response_field': <django.forms.fields.CharField object>, 'refusal_reason': <django.forms.fields.ChoiceField object>}¶
-
property
media
¶
-
-
class
comments.forms.
CommentTextSearchForm
(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
Search for Comment
-
base_fields
= {'text': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'text': <django.forms.fields.CharField object>}¶
-
property
media
¶
-