seshat.apps.crisisdb.views
Attributes
Classes
View for creating a new Agricultural_population instance. |
|
View for deleting an existing Agricultural_population instance. |
|
View for displaying a single Agricultural_population instance. |
|
View for listing all Agricultural_population instances. |
|
View for updating an existing Agricultural_population instance. |
|
View for creating a new Arable_land instance. |
|
View for deleting an existing Arable_land instance. |
|
View for displaying a single Arable_land instance. |
|
View for listing all Arable_land instances. |
|
View for updating an existing Arable_land instance. |
|
View for creating a new Arable_land_per_farmer instance. |
|
View for deleting an existing Arable_land_per_farmer instance. |
|
View for displaying a single Arable_land_per_farmer instance. |
|
View for listing all Arable_land_per_farmer instances. |
|
View for updating an existing Arable_land_per_farmer instance. |
|
View for creating a new Crisis_consequence instance. |
|
View for creating a new Crisis_consequence instance. |
|
View for deleting an existing Crisis_consequence instance. |
|
View for displaying a single Crisis_consequence instance. |
|
View for listing all Crisis_consequence instances. |
|
View for listing all Crisis_consequence instances. |
|
View for updating an existing Crisis_consequence instance. |
|
View for updating an existing Crisis_consequence instance. |
|
View for creating a new Crop_failure_event instance. |
|
View for deleting an existing Crop_failure_event instance. |
|
View for displaying a single Crop_failure_event instance. |
|
View for listing all Crop_failure_event instances. |
|
View for updating an existing Crop_failure_event instance. |
|
View for creating a new Disease_outbreak instance. |
|
View for deleting an existing Disease_outbreak instance. |
|
View for displaying a single Disease_outbreak instance. |
|
View for listing all Disease_outbreak instances. |
|
View for updating an existing Disease_outbreak instance. |
|
View for creating a new Drought_event instance. |
|
View for deleting an existing Drought_event instance. |
|
View for displaying a single Drought_event instance. |
|
View for listing all Drought_event instances. |
|
View for updating an existing Drought_event instance. |
|
View for creating a new External_conflict instance. |
|
View for deleting an existing External_conflict instance. |
|
View for displaying a single External_conflict instance. |
|
View for listing all External_conflict instances. |
|
View for updating an existing External_conflict instance. |
|
View for creating a new External_conflict_side instance. |
|
View for deleting an existing External_conflict_side instance. |
|
View for displaying a single External_conflict_side instance. |
|
View for listing all External_conflict_side instances. |
|
View for updating an existing External_conflict_side instance (side). |
|
View for creating a new Famine_event instance. |
|
View for deleting an existing Famine_event instance. |
|
View for displaying a single Famine_event instance. |
|
View for listing all Famine_event instances. |
|
View for updating an existing Famine_event instance. |
|
View for creating a new Gdp_per_capita instance. |
|
View for deleting an existing Gdp_per_capita instance. |
|
View for displaying a single Gdp_per_capita instance. |
|
View for listing all Gdp_per_capita instances. |
|
View for updating an existing Gdp_per_capita instance. |
|
View for creating a new Gross_grain_shared_per_agricultural_population instance. |
|
View for deleting an existing Gross_grain_shared_per_agricultural_population instance. |
|
View for displaying a single Gross_grain_shared_per_agricultural_population instance. |
|
View for listing all Gross_grain_shared_per_agricultural_population instances. |
|
View for updating an existing Gross_grain_shared_per_agricultural_population instance. |
|
View for creating a new Human_sacrifice instance. |
|
View for deleting an existing Human_sacrifice instance. |
|
View for displaying a single Human_sacrifice instance. |
|
View for listing all Human_sacrifice instances. |
|
View for listing all Human_sacrifice instances. |
|
View for updating an existing Human_sacrifice instance. |
|
View for creating a new Internal_conflict instance. |
|
View for deleting an existing Internal_conflict instance. |
|
View for displaying a single Internal_conflict instance. |
|
View for listing all Internal_conflict instances. |
|
View for updating an existing Internal_conflict instance. |
|
View for creating a new Locust_event instance. |
|
View for deleting an existing Locust_event instance. |
|
View for displaying a single Locust_event instance. |
|
View for listing all Locust_event instances. |
|
View for updating an existing Locust_event instance. |
|
View for creating a new Military_expense instance. |
|
View for deleting an existing Military_expense instance. |
|
View for displaying a single Military_expense instance. |
|
View for listing all Military_expense instances. |
|
View for updating an existing Military_expense instance. |
|
View for creating a new Net_grain_shared_per_agricultural_population instance. |
|
View for deleting an existing Net_grain_shared_per_agricultural_population instance. |
|
View for displaying a single Net_grain_shared_per_agricultural_population instance. |
|
View for listing all Net_grain_shared_per_agricultural_population instances. |
|
View for updating an existing Net_grain_shared_per_agricultural_population instance. |
|
View for creating a new Power_transition instance. |
|
View for creating a new Power_transition instance. |
|
View for deleting an existing Power_transition instance. |
|
View for displaying a single Power_transition instance. |
|
View for listing all Power_transition instances. |
|
View for listing all Power_transition instances. |
|
View for updating an existing Power_transition instance. |
|
View for updating an existing Power_transition instance. |
|
View for creating a new Silver_inflow instance. |
|
View for deleting an existing Silver_inflow instance. |
|
View for displaying a single Silver_inflow instance. |
|
View for listing all Silver_inflow instances. |
|
View for updating an existing Silver_inflow instance. |
|
View for creating a new Silver_stock instance. |
|
View for deleting an existing Silver_stock instance. |
|
View for displaying a single Silver_stock instance. |
|
View for listing all Silver_stock instances. |
|
View for updating an existing Silver_stock instance. |
|
View for creating a new Socioeconomic_turmoil_event instance. |
|
View for deleting an existing Socioeconomic_turmoil_event instance. |
|
View for displaying a single Socioeconomic_turmoil_event instance. |
|
View for listing all Socioeconomic_turmoil_event instances. |
|
View for updating an existing Socioeconomic_turmoil_event instance. |
|
View for creating a new Surplus instance. |
|
View for deleting an existing Surplus instance. |
|
View for displaying a single Surplus instance. |
|
View for listing all Surplus instances. |
|
View for updating an existing Surplus instance. |
|
View for creating a new Total_population instance. |
|
View for deleting an existing Total_population instance. |
|
View for displaying a single Total_population instance. |
|
View for listing all Total_population instances. |
|
View for updating an existing Total_population instance. |
|
View for creating a new Us_location instance. |
|
View for listing all Us_location instances. |
|
View for updating an existing Us_location instance. |
|
View for creating a new Us_violence instance. |
|
View for creating a new Us_violence_data_source instance. |
|
View for listing all Us_violence_data_source instances. |
|
View for updating an existing Us_violence_data_source instance. |
|
View for listing all Us_violence instances. |
|
View for listing all Us_violence instances with pagination (100 per page). |
|
View for creating a new Us_violence_subtype instance. |
|
View for listing all Us_violence_subtype instances. |
|
View for updating an existing Us_violence_subtype instance. |
|
View for updating an existing Us_violence instance. |
Functions
|
View for listing all Qing Variables. |
|
Download all Agricultural_population instances as CSV. |
Download the metadata for Agricultural_population instances as CSV. |
|
|
Download all Arable_land instances as CSV. |
|
Download the metadata for Arable_land instances as CSV. |
|
Download all Arable_land_per_farmer instances as CSV. |
|
Download the metadata for Arable_land_per_farmer instances as CSV. |
|
View for confirming the deletion of an object. |
|
Create a new comment instance with a subcomment and save them to the database. |
|
Download all Crisis_consequence instances as CSV. |
|
Download the metadata for Crisis_consequence instances as CSV. |
|
Download all Crop_failure_event instances as CSV. |
|
Download the metadata for Crop_failure_event instances as CSV. |
|
View for deleting an object. |
|
Download all Disease_outbreak instances as CSV. |
|
Download the metadata for Disease_outbreak instances as CSV. |
|
Download all Us_violence instances as CSV. |
|
Download all Us_violence instances as CSV. |
|
Download all Drought_event instances as CSV. |
|
Download the metadata for Drought_event instances as CSV. |
|
Download all External_conflict instances as CSV. |
|
Download the metadata for External_conflict instances as CSV. |
|
Download all External_conflict_side instances as CSV. |
|
Download the metadata for External_conflict_side instances as CSV. |
|
Download all Famine_event instances as CSV. |
|
Download the metadata for Famine_event instances as CSV. |
|
View for the Famine, Plague, and Locust page. |
|
Download all Gdp_per_capita instances as CSV. |
|
Download the metadata for Gdp_per_capita instances as CSV. |
|
Get all citations as JSON. |
|
Download all Gross_grain_shared_per_agricultural_population instances as CSV. |
|
Download the metadata for Gross_grain_shared_per_agricultural_population instances as CSV. |
|
Download all Human_sacrifice instances as CSV. |
|
Download the metadata for Human_sacrifice instances as CSV. |
|
Download all Internal_conflict instances as CSV. |
|
Download the metadata for Internal_conflict instances as CSV. |
|
Download all Locust_event instances as CSV. |
|
Download the metadata for Locust_event instances as CSV. |
|
Download all Military_expense instances as CSV. |
|
Download the metadata for Military_expense instances as CSV. |
|
Download all Net_grain_shared_per_agricultural_population instances as CSV. |
|
Download the metadata for Net_grain_shared_per_agricultural_population instances as CSV. |
|
View for the playground. |
|
Download the data from the playground. |
|
Download all Power_transition instances as CSV. |
|
Download the metadata for Power_transition instances as CSV. |
|
|
|
Download all Silver_inflow instances as CSV. |
|
Download the metadata for Silver_inflow instances as CSV. |
|
Download all Silver_stock instances as CSV. |
|
Download the metadata for Silver_stock instances as CSV. |
|
Download all Socioeconomic_turmoil_event instances as CSV. |
Download the metadata for Socioeconomic_turmoil_event instances as CSV. |
|
|
Download all Surplus instances as CSV. |
|
Download the metadata for Surplus instances as CSV. |
|
Download all Total_population instances as CSV. |
|
Download the metadata for Total_population instances as CSV. |
Module Contents
- class seshat.apps.crisisdb.views.Agricultural_populationCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/agricultural_population/agricultural_population_form.html'
- class seshat.apps.crisisdb.views.Agricultural_populationDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Agricultural_populationDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Agricultural_population instance.
- model
- template_name = 'crisisdb/agricultural_population/agricultural_population_detail.html'
- class seshat.apps.crisisdb.views.Agricultural_populationListView
Bases:
django.views.generic.ListViewView for listing all Agricultural_population instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/agricultural_population/agricultural_population_list.html'
- class seshat.apps.crisisdb.views.Agricultural_populationUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/agricultural_population/agricultural_population_update.html'
- class seshat.apps.crisisdb.views.Arable_landCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Arable_land instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/arable_land/arable_land_form.html'
- class seshat.apps.crisisdb.views.Arable_landDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Arable_land instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Arable_landDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Arable_land instance.
- model
- template_name = 'crisisdb/arable_land/arable_land_detail.html'
- class seshat.apps.crisisdb.views.Arable_landListView
Bases:
django.views.generic.ListViewView for listing all Arable_land instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/arable_land/arable_land_list.html'
- class seshat.apps.crisisdb.views.Arable_landUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Arable_land instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/arable_land/arable_land_update.html'
- class seshat.apps.crisisdb.views.Arable_land_per_farmerCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Arable_land_per_farmer instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/arable_land_per_farmer/arable_land_per_farmer_form.html'
- class seshat.apps.crisisdb.views.Arable_land_per_farmerDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Arable_land_per_farmer instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Arable_land_per_farmerDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Arable_land_per_farmer instance.
- model
- template_name = 'crisisdb/arable_land_per_farmer/arable_land_per_farmer_detail.html'
- class seshat.apps.crisisdb.views.Arable_land_per_farmerListView
Bases:
django.views.generic.ListViewView for listing all Arable_land_per_farmer instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/arable_land_per_farmer/arable_land_per_farmer_list.html'
- class seshat.apps.crisisdb.views.Arable_land_per_farmerUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Arable_land_per_farmer instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/arable_land_per_farmer/arable_land_per_farmer_update.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,seshat.apps.general.mixins.PolityIdMixin,django.views.generic.edit.CreateViewView for creating a new Crisis_consequence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_form.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceCreateHeavy
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Crisis_consequence instance.
Note
This view is for creating a new Crisis_consequence instance with a heavy form. This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_form_heavy.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Crisis_consequence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceDetailView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.DetailViewView for displaying a single Crisis_consequence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_detail.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceListView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Crisis_consequence instances.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_list.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceListViewAll
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Crisis_consequence instances.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_list_all.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Crisis_consequence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_form.html'
- class seshat.apps.crisisdb.views.Crisis_consequenceUpdateHeavy
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Crisis_consequence instance.
Note
This view is for updating an existing Crisis_consequence instance with a heavy form. This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/crisis_consequence/crisis_consequence_form_heavy.html'
- class seshat.apps.crisisdb.views.Crop_failure_eventCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Crop_failure_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/crop_failure_event/crop_failure_event_form.html'
- class seshat.apps.crisisdb.views.Crop_failure_eventDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Crop_failure_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Crop_failure_eventDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Crop_failure_event instance.
- model
- template_name = 'crisisdb/crop_failure_event/crop_failure_event_detail.html'
- class seshat.apps.crisisdb.views.Crop_failure_eventListView
Bases:
django.views.generic.ListViewView for listing all Crop_failure_event instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/crop_failure_event/crop_failure_event_list.html'
- class seshat.apps.crisisdb.views.Crop_failure_eventUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Crop_failure_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/crop_failure_event/crop_failure_event_update.html'
- class seshat.apps.crisisdb.views.Disease_outbreakCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Disease_outbreak instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/disease_outbreak/disease_outbreak_form.html'
- class seshat.apps.crisisdb.views.Disease_outbreakDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Disease_outbreak instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Disease_outbreakDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Disease_outbreak instance.
- model
- template_name = 'crisisdb/disease_outbreak/disease_outbreak_detail.html'
- class seshat.apps.crisisdb.views.Disease_outbreakListView
Bases:
django.views.generic.ListViewView for listing all Disease_outbreak instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/disease_outbreak/disease_outbreak_list.html'
- class seshat.apps.crisisdb.views.Disease_outbreakUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Disease_outbreak instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/disease_outbreak/disease_outbreak_update.html'
- class seshat.apps.crisisdb.views.Drought_eventCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Drought_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/drought_event/drought_event_form.html'
- class seshat.apps.crisisdb.views.Drought_eventDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Drought_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Drought_eventDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Drought_event instance.
- model
- template_name = 'crisisdb/drought_event/drought_event_detail.html'
- class seshat.apps.crisisdb.views.Drought_eventListView
Bases:
django.views.generic.ListViewView for listing all Drought_event instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/drought_event/drought_event_list.html'
- class seshat.apps.crisisdb.views.Drought_eventUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Drought_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/drought_event/drought_event_update.html'
- class seshat.apps.crisisdb.views.External_conflictCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new External_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/external_conflict/external_conflict_form.html'
- class seshat.apps.crisisdb.views.External_conflictDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing External_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.External_conflictDetailView
Bases:
django.views.generic.DetailViewView for displaying a single External_conflict instance.
- model
- template_name = 'crisisdb/external_conflict/external_conflict_detail.html'
- class seshat.apps.crisisdb.views.External_conflictListView
Bases:
django.views.generic.ListViewView for listing all External_conflict instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/external_conflict/external_conflict_list.html'
- class seshat.apps.crisisdb.views.External_conflictUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing External_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/external_conflict/external_conflict_update.html'
- class seshat.apps.crisisdb.views.External_conflict_sideCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new External_conflict_side instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/external_conflict_side/external_conflict_side_form.html'
- class seshat.apps.crisisdb.views.External_conflict_sideDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing External_conflict_side instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.External_conflict_sideDetailView
Bases:
django.views.generic.DetailViewView for displaying a single External_conflict_side instance.
- model
- template_name = 'crisisdb/external_conflict_side/external_conflict_side_detail.html'
- class seshat.apps.crisisdb.views.External_conflict_sideListView
Bases:
django.views.generic.ListViewView for listing all External_conflict_side instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/external_conflict_side/external_conflict_side_list.html'
- class seshat.apps.crisisdb.views.External_conflict_sideUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing External_conflict_side instance (side).
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/external_conflict_side/external_conflict_side_update.html'
- class seshat.apps.crisisdb.views.Famine_eventCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Famine_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/famine_event/famine_event_form.html'
- class seshat.apps.crisisdb.views.Famine_eventDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Famine_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Famine_eventDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Famine_event instance.
- model
- template_name = 'crisisdb/famine_event/famine_event_detail.html'
- class seshat.apps.crisisdb.views.Famine_eventListView
Bases:
django.views.generic.ListViewView for listing all Famine_event instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/famine_event/famine_event_list.html'
- class seshat.apps.crisisdb.views.Famine_eventUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Famine_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/famine_event/famine_event_update.html'
- class seshat.apps.crisisdb.views.Gdp_per_capitaCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Gdp_per_capita instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/gdp_per_capita/gdp_per_capita_form.html'
- class seshat.apps.crisisdb.views.Gdp_per_capitaDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Gdp_per_capita instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Gdp_per_capitaDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Gdp_per_capita instance.
- model
- template_name = 'crisisdb/gdp_per_capita/gdp_per_capita_detail.html'
- class seshat.apps.crisisdb.views.Gdp_per_capitaListView
Bases:
django.views.generic.ListViewView for listing all Gdp_per_capita instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/gdp_per_capita/gdp_per_capita_list.html'
- class seshat.apps.crisisdb.views.Gdp_per_capitaUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Gdp_per_capita instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/gdp_per_capita/gdp_per_capita_update.html'
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Gross_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Gross_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Bases:
django.views.generic.DetailViewView for displaying a single Gross_grain_shared_per_agricultural_population instance.
Bases:
django.views.generic.ListViewView for listing all Gross_grain_shared_per_agricultural_population instances.
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Gross_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- class seshat.apps.crisisdb.views.Human_sacrificeCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,seshat.apps.general.mixins.PolityIdMixin,django.views.generic.edit.CreateViewView for creating a new Human_sacrifice instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_valid(form)
Validate the form.
- Parameters:
form – Form to validate
- Returns:
HTTP response
- Return type:
HttpResponse
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/human_sacrifice/human_sacrifice_form.html'
- class seshat.apps.crisisdb.views.Human_sacrificeDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Human_sacrifice instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Human_sacrificeDetailView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.DetailViewView for displaying a single Human_sacrifice instance.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- model
- permission_required = 'core.view_capital'
- template_name = 'crisisdb/human_sacrifice/human_sacrifice_detail.html'
- class seshat.apps.crisisdb.views.Human_sacrificeListView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Human_sacrifice instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- permission_required = 'core.view_capital'
- template_name = 'crisisdb/human_sacrifice/human_sacrifice_list.html'
- class seshat.apps.crisisdb.views.Human_sacrificeListViewAll
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Human_sacrifice instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- model
- permission_required = 'core.view_capital'
- template_name = 'crisisdb/human_sacrifice/human_sacrifice_list_all.html'
- class seshat.apps.crisisdb.views.Human_sacrificeUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Human_sacrifice instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/human_sacrifice/human_sacrifice_update.html'
- class seshat.apps.crisisdb.views.Internal_conflictCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Internal_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/internal_conflict/internal_conflict_form.html'
- class seshat.apps.crisisdb.views.Internal_conflictDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Internal_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Internal_conflictDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Internal_conflict instance.
- model
- template_name = 'crisisdb/internal_conflict/internal_conflict_detail.html'
- class seshat.apps.crisisdb.views.Internal_conflictListView
Bases:
django.views.generic.ListViewView for listing all Internal_conflict instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/internal_conflict/internal_conflict_list.html'
- class seshat.apps.crisisdb.views.Internal_conflictUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Internal_conflict instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/internal_conflict/internal_conflict_update.html'
- class seshat.apps.crisisdb.views.Locust_eventCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Locust_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/locust_event/locust_event_form.html'
- class seshat.apps.crisisdb.views.Locust_eventDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Locust_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Locust_eventDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Locust_event instance.
- model
- template_name = 'crisisdb/locust_event/locust_event_detail.html'
- class seshat.apps.crisisdb.views.Locust_eventListView
Bases:
django.views.generic.ListViewView for listing all Locust_event instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/locust_event/locust_event_list.html'
- class seshat.apps.crisisdb.views.Locust_eventUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Locust_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/locust_event/locust_event_update.html'
- class seshat.apps.crisisdb.views.Military_expenseCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Military_expense instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/military_expense/military_expense_form.html'
- class seshat.apps.crisisdb.views.Military_expenseDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Military_expense instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Military_expenseDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Military_expense instance.
- model
- template_name = 'crisisdb/military_expense/military_expense_detail.html'
- class seshat.apps.crisisdb.views.Military_expenseListView
Bases:
django.views.generic.ListViewView for listing all Military_expense instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/military_expense/military_expense_list.html'
- class seshat.apps.crisisdb.views.Military_expenseUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Military_expense instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/military_expense/military_expense_update.html'
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Net_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Net_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Bases:
django.views.generic.DetailViewView for displaying a single Net_grain_shared_per_agricultural_population instance.
Bases:
django.views.generic.ListViewView for listing all Net_grain_shared_per_agricultural_population instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Net_grain_shared_per_agricultural_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- class seshat.apps.crisisdb.views.Power_transitionCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,seshat.apps.general.mixins.PolityIdMixin,django.views.generic.edit.CreateViewView for creating a new Power_transition instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/power_transition/power_transition_form.html'
- class seshat.apps.crisisdb.views.Power_transitionCreateHeavy
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Power_transition instance.
Note
This view is for creating a new Power_transition instance with a heavy form. This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/power_transition/power_transition_form_heavy.html'
- class seshat.apps.crisisdb.views.Power_transitionDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Power_transition instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Power_transitionDetailView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.DetailViewView for displaying a single Power_transition instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/power_transition/power_transition_detail.html'
- class seshat.apps.crisisdb.views.Power_transitionListView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Power_transition instances.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- model
- paginate_by = 500
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/power_transition/power_transition_list.html'
- class seshat.apps.crisisdb.views.Power_transitionListViewAll
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.ListViewView for listing all Power_transition instances.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/power_transition/power_transition_list_all_new.html'
- class seshat.apps.crisisdb.views.Power_transitionUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Power_transition instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/power_transition/power_transition_update.html'
- class seshat.apps.crisisdb.views.Power_transitionUpdateHeavy
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Power_transition instance.
Note
This view is for updating an existing Power_transition instance with a heavy form. This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- get_success_url()
Get the URL to redirect to after successful form submission.
- Returns:
URL to redirect to
- Return type:
str
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/power_transition/power_transition_form_heavy.html'
- class seshat.apps.crisisdb.views.Silver_inflowCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Silver_inflow instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/silver_inflow/silver_inflow_form.html'
- class seshat.apps.crisisdb.views.Silver_inflowDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Silver_inflow instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Silver_inflowDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Silver_inflow instance.
- model
- template_name = 'crisisdb/silver_inflow/silver_inflow_detail.html'
- class seshat.apps.crisisdb.views.Silver_inflowListView
Bases:
django.views.generic.ListViewView for listing all Silver_inflow instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/silver_inflow/silver_inflow_list.html'
- class seshat.apps.crisisdb.views.Silver_inflowUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Silver_inflow instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/silver_inflow/silver_inflow_update.html'
- class seshat.apps.crisisdb.views.Silver_stockCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Silver_stock instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/silver_stock/silver_stock_form.html'
- class seshat.apps.crisisdb.views.Silver_stockDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Silver_stock instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Silver_stockDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Silver_stock instance.
- model
- template_name = 'crisisdb/silver_stock/silver_stock_detail.html'
- class seshat.apps.crisisdb.views.Silver_stockListView
Bases:
django.views.generic.ListViewView for listing all Silver_stock instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/silver_stock/silver_stock_list.html'
- class seshat.apps.crisisdb.views.Silver_stockUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Silver_stock instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/silver_stock/silver_stock_update.html'
- class seshat.apps.crisisdb.views.Socioeconomic_turmoil_eventCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Socioeconomic_turmoil_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/socioeconomic_turmoil_event/socioeconomic_turmoil_event_form.html'
- class seshat.apps.crisisdb.views.Socioeconomic_turmoil_eventDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Socioeconomic_turmoil_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Socioeconomic_turmoil_eventDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Socioeconomic_turmoil_event instance.
- model
- template_name = 'crisisdb/socioeconomic_turmoil_event/socioeconomic_turmoil_event_detail.html'
- class seshat.apps.crisisdb.views.Socioeconomic_turmoil_eventListView
Bases:
django.views.generic.ListViewView for listing all Socioeconomic_turmoil_event instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/socioeconomic_turmoil_event/socioeconomic_turmoil_event_list.html'
- class seshat.apps.crisisdb.views.Socioeconomic_turmoil_eventUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Socioeconomic_turmoil_event instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/socioeconomic_turmoil_event/socioeconomic_turmoil_event_update.html'
- class seshat.apps.crisisdb.views.SurplusCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Surplus instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/surplus/surplus_form.html'
- class seshat.apps.crisisdb.views.SurplusDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Surplus instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.SurplusDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Surplus instance.
- model
- template_name = 'crisisdb/surplus/surplus_detail.html'
- class seshat.apps.crisisdb.views.SurplusListView
Bases:
django.views.generic.ListViewView for listing all Surplus instances.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/surplus/surplus_list.html'
- class seshat.apps.crisisdb.views.SurplusUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Surplus instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/surplus/surplus_update.html'
- class seshat.apps.crisisdb.views.Total_populationCreate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Total_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/total_population/total_population_form.html'
- class seshat.apps.crisisdb.views.Total_populationDelete
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.DeleteViewView for deleting an existing Total_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'core/delete_general.html'
- class seshat.apps.crisisdb.views.Total_populationDetailView
Bases:
django.views.generic.DetailViewView for displaying a single Total_population instance.
- model
- template_name = 'crisisdb/total_population/total_population_detail.html'
- class seshat.apps.crisisdb.views.Total_populationListView
Bases:
django.views.generic.ListViewView for listing all Total_population instances.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- get_absolute_url()
Get the absolute URL of the view.
- Returns:
Absolute URL of the view
- Return type:
str
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- model
- paginate_by = 50
- template_name = 'crisisdb/total_population/total_population_list.html'
- class seshat.apps.crisisdb.views.Total_populationUpdate
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Total_population instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- get_context_data(**kwargs)
Get the context data for the view.
- Noindex:
- Parameters:
**kwargs – Arbitrary keyword arguments
- Returns:
Context data for the view
- Return type:
dict
- form_class
- model
- permission_required = 'core.add_capital'
- template_name = 'crisisdb/total_population/total_population_update.html'
- class seshat.apps.crisisdb.views.UsLocationCreateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Us_location instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/us_location/create.html'
- class seshat.apps.crisisdb.views.UsLocationListView
Bases:
django.views.generic.list.ListViewView for listing all Us_location instances.
- context_object_name = 'us_locations'
- model
- template_name = 'crisisdb/us_location/list.html'
- class seshat.apps.crisisdb.views.UsLocationUpdateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Us_location instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/us_location/update.html'
- class seshat.apps.crisisdb.views.UsViolenceCreateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Us_violence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/us_violence/create.html'
- class seshat.apps.crisisdb.views.UsViolenceDataSourceCreateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Us_violence_data_source instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/datasource/create.html'
- class seshat.apps.crisisdb.views.UsViolenceDataSourceListView
Bases:
django.views.generic.list.ListViewView for listing all Us_violence_data_source instances.
- context_object_name = 'datasources'
- model
- template_name = 'crisisdb/datasource/list.html'
- class seshat.apps.crisisdb.views.UsViolenceDataSourceUpdateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Us_violence_data_source instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/datasource/update.html'
- class seshat.apps.crisisdb.views.UsViolenceListView
Bases:
django.views.generic.list.ListViewView for listing all Us_violence instances.
- get_queryset()
Get the queryset for the view.
- Returns:
QuerySet for the view
- Return type:
QuerySet
- context_object_name = 'us_violences'
- model
- template_name = 'crisisdb/us_violence/list.html'
- class seshat.apps.crisisdb.views.UsViolenceListViewPaginated
Bases:
django.views.generic.list.ListViewView for listing all Us_violence instances with pagination (100 per page).
- context_object_name = 'us_violences'
- model
- paginate_by = 100
- template_name = 'crisisdb/us_violence/list_paginated.html'
- class seshat.apps.crisisdb.views.UsViolenceSubtypeCreateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.CreateViewView for creating a new Us_violence_subtype instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/subtype/create.html'
- class seshat.apps.crisisdb.views.UsViolenceSubtypeListView
Bases:
django.views.generic.list.ListViewView for listing all Us_violence_subtype instances.
- context_object_name = 'subtypes'
- model
- template_name = 'crisisdb/subtype/list.html'
- class seshat.apps.crisisdb.views.UsViolenceSubtypeUpdateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Us_violence_subtype instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/subtype/update.html'
- class seshat.apps.crisisdb.views.UsViolenceUpdateView
Bases:
django.contrib.auth.mixins.PermissionRequiredMixin,django.views.generic.edit.UpdateViewView for updating an existing Us_violence instance.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- form_class
- model
- permission_required = 'core.add_capital'
- success_url
- template_name = 'crisisdb/us_violence/update.html'
- seshat.apps.crisisdb.views.QingVars(request)
View for listing all Qing Variables.
Note
This is a temporary view for testing the Qing variables.
- Parameters:
request – HttpRequest object
- Returns:
Context data for the view
- Return type:
dict
- seshat.apps.crisisdb.views.agricultural_population_download(request)
Download all Agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.agricultural_population_meta_download(request)
Download the metadata for Agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- seshat.apps.crisisdb.views.arable_land_download(request)
Download all Arable_land instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.arable_land_meta_download(request)
Download the metadata for Arable_land instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.arable_land_per_farmer_download(request)
Download all Arable_land_per_farmer instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.arable_land_per_farmer_meta_download(request)
Download the metadata for Arable_land_per_farmer instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.confirm_delete_view(request, model_class, pk, var_name)
View for confirming the deletion of an object.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- Parameters:
request – HttpRequest object
model_class – Model class of the object to be deleted
pk – Primary key of the object to be deleted
var_name – Name of the object to be deleted
- Returns:
HTTP response with the confirmation page
- Return type:
HttpResponse
- Raises:
Http404 – If the object with the given primary key does not exist
- seshat.apps.crisisdb.views.create_a_comment_with_a_subcomment(request, hs_instance_id)
Create a new comment instance with a subcomment and save them to the database.
Note
This view is only accessible to authenticated users.
- Parameters:
request – HttpRequest object
hs_instance_id – ID of the Human_sacrifice instance
- Returns:
HTTP response
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.crisis_consequence_download(request)
Download all Crisis_consequence instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.crisis_consequence_meta_download(request)
Download the metadata for Crisis_consequence instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.crop_failure_event_download(request)
Download all Crop_failure_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.crop_failure_event_meta_download(request)
Download the metadata for Crop_failure_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.delete_object_view(request, model_class, pk, var_name)
View for deleting an object.
Note
This view is only accessible to users with the ‘add_capital’ permission.
- Parameters:
request – HttpRequest object
model_class – Model class of the object to be deleted
pk – Primary key of the object to be deleted
var_name – Name of the object to be deleted
- Returns:
HTTP response with the confirmation page
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.disease_outbreak_download(request)
Download all Disease_outbreak instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.disease_outbreak_meta_download(request)
Download the metadata for Disease_outbreak instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.download_csv_all_american_violence(request)
Download all Us_violence instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- seshat.apps.crisisdb.views.download_csv_all_american_violence2(request)
Download all Us_violence instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission. This function is not currently used in the application.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.drought_event_download(request)
Download all Drought_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.drought_event_meta_download(request)
Download the metadata for Drought_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.external_conflict_download(request)
Download all External_conflict instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.external_conflict_meta_download(request)
Download the metadata for External_conflict instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.external_conflict_side_download(request)
Download all External_conflict_side instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.external_conflict_side_meta_download(request)
Download the metadata for External_conflict_side instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.famine_event_download(request)
Download all Famine_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.famine_event_meta_download(request)
Download the metadata for Famine_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.fpl_all(request)
View for the Famine, Plague, and Locust page.
- seshat.apps.crisisdb.views.gdp_per_capita_download(request)
Download all Gdp_per_capita instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.gdp_per_capita_meta_download(request)
Download the metadata for Gdp_per_capita instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.get_citations_dropdown(request)
Get all citations as JSON.
- Parameters:
request – HttpRequest object
- Returns:
JSON response with all citations for dropdown
- Return type:
JsonResponse
Download all Gross_grain_shared_per_agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
Download the metadata for Gross_grain_shared_per_agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.human_sacrifice_download(request)
Download all Human_sacrifice instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.human_sacrifice_meta_download(request)
Download the metadata for Human_sacrifice instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.internal_conflict_download(request)
Download all Internal_conflict instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.internal_conflict_meta_download(request)
Download the metadata for Internal_conflict instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.locust_event_download(request)
Download all Locust_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.locust_event_meta_download(request)
Download the metadata for Locust_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.military_expense_download(request)
Download all Military_expense instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.military_expense_meta_download(request)
Download the metadata for Military_expense instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
Download all Net_grain_shared_per_agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
Download the metadata for Net_grain_shared_per_agricultural_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- seshat.apps.crisisdb.views.playground(request)
View for the playground.
- Parameters:
request – HttpRequest object
- Returns:
Context data for the view
- Return type:
dict
- seshat.apps.crisisdb.views.playgrounddownload(request)
Download the data from the playground.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.power_transition_download(request)
Download all Power_transition instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.power_transition_meta_download(request)
Download the metadata for Power_transition instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.remove_html_tags(text)
- seshat.apps.crisisdb.views.silver_inflow_download(request)
Download all Silver_inflow instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.silver_inflow_meta_download(request)
Download the metadata for Silver_inflow instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.silver_stock_download(request)
Download all Silver_stock instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.silver_stock_meta_download(request)
Download the metadata for Silver_stock instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.socioeconomic_turmoil_event_download(request)
Download all Socioeconomic_turmoil_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.socioeconomic_turmoil_event_meta_download(request)
Download the metadata for Socioeconomic_turmoil_event instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.surplus_download(request)
Download all Surplus instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.surplus_meta_download(request)
Download the metadata for Surplus instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.total_population_download(request)
Download all Total_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.total_population_meta_download(request)
Download the metadata for Total_population instances as CSV.
Note
This view is only accessible to users with the ‘view_capital’ permission.
- Parameters:
request – HttpRequest object
- Returns:
HTTP response with CSV file
- Return type:
HttpResponse
- seshat.apps.crisisdb.views.Tags_dic