seshat.apps.core.forms
Attributes
Classes
Base formset for adding or updating multiple references to a comment. |
|
Form for adding or updating a new capital in the database. |
|
Form for adding or updating a new citation in the database. |
|
Form for adding or updating a new NGA in the database. |
|
Form for adding or updating a new polity in the database. |
|
Form for adding or updating an existing polity in the database. |
|
Form for adding or updating a new reference in the database. |
|
Form for adding or updating a new reference with page numbers in the database. |
|
Form for adding or updating a new religion in the database. |
|
Form for adding or updating a new comment in the database. |
|
Form for adding or updating a new comment part in the database. |
|
Form for adding or updating a new private comment in the database. |
|
Form for adding or updating a new private comment part in the database. |
|
Module Contents
- class seshat.apps.core.forms.BaseReferenceFormSet
Bases:
django.forms.formsets.BaseFormSetBase formset for adding or updating multiple references to a comment.
- add_fields(form, index)
Add fields to the form.
- Parameters:
form (Form) – The form to add fields to.
index (int) – The index of the form.
- Returns:
None
- class seshat.apps.core.forms.CapitalForm
Bases:
django.forms.ModelFormForm for adding or updating a new capital in the database.
- class seshat.apps.core.forms.CitationForm
Bases:
django.forms.ModelFormForm for adding or updating a new citation in the database.
- clean()
Check if the citation is a duplicate.
- Returns:
The cleaned data.
- Return type:
dict
- Raises:
ValidationError – If the citation is a duplicate.
- class seshat.apps.core.forms.NgaForm
Bases:
django.forms.ModelFormForm for adding or updating a new NGA in the database.
- class seshat.apps.core.forms.PolityForm
Bases:
django.forms.ModelFormForm for adding or updating a new polity in the database.
- class seshat.apps.core.forms.PolityUpdateForm
Bases:
django.forms.ModelFormForm for adding or updating an existing polity in the database.
- class seshat.apps.core.forms.ReferenceForm
Bases:
django.forms.ModelFormForm for adding or updating a new reference in the database.
- class seshat.apps.core.forms.ReferenceWithPageForm(*args, **kwargs)
Bases:
django.forms.FormForm for adding or updating a new reference with page numbers in the database.
- helper
- page_from
- page_to
- parent_pars
- ref
- class seshat.apps.core.forms.ReferenceWithPageForm_UPGRADE(*args, **kwargs)
Bases:
django.forms.Form- helper
- page_from
- page_to
- parent_pars
- ref
- class seshat.apps.core.forms.ReligionForm
Bases:
django.forms.ModelFormForm for adding or updating a new religion in the database.
- class seshat.apps.core.forms.SeshatCommentForm
Bases:
django.forms.ModelFormForm for adding or updating a new comment in the database.
- class seshat.apps.core.forms.SeshatCommentPartForm
Bases:
django.forms.ModelFormForm for adding or updating a new comment part in the database.
- class seshat.apps.core.forms.SeshatCommentPartForm10
Bases:
django.forms.Form- comment_order
- comment_text
- formset
- class seshat.apps.core.forms.SeshatCommentPartForm2
Bases:
django.forms.Form- comment_order
- comment_text
- formset
- class seshat.apps.core.forms.SeshatCommentPartForm2_UPGRADE
Bases:
django.forms.Form- comment_order
- comment_text
- references_formset
- class seshat.apps.core.forms.SeshatCommentPartForm5
Bases:
django.forms.Form- comment_order
- comment_text
- formset
- class seshat.apps.core.forms.SeshatPrivateCommentForm
Bases:
django.forms.ModelFormForm for adding or updating a new private comment in the database.
- class seshat.apps.core.forms.SeshatPrivateCommentPartForm
Bases:
django.forms.ModelFormForm for adding or updating a new private comment part in the database.
- class seshat.apps.core.forms.SignUpForm
Bases:
django.contrib.auth.forms.UserCreationForm- class Meta
- Noindex:
- fields = ('username', 'first_name', 'last_name', 'email', 'password1', 'password2', 'captcha')
- model
- widgets
- clean_email()
- captcha
- password1
- password2
- class seshat.apps.core.forms.VariablehierarchyFormNew
Bases:
django.forms.Form- is_verified
- my_vars
- my_vars_tuple = [('', ' -- Select Variable -- ')]
- section_name
- subsection_name
- variable_name
- seshat.apps.core.forms.CommentPartFormSet
- seshat.apps.core.forms.ReferenceFormSet10
- seshat.apps.core.forms.ReferenceFormSet2
- seshat.apps.core.forms.ReferenceFormSet2_UPGRADE
- seshat.apps.core.forms.ReferenceFormSet5