seshat.apps.crisisdb.views

Attributes

Tags_dic

Classes

Agricultural_populationCreate

View for creating a new Agricultural_population instance.

Agricultural_populationDelete

View for deleting an existing Agricultural_population instance.

Agricultural_populationDetailView

View for displaying a single Agricultural_population instance.

Agricultural_populationListView

View for listing all Agricultural_population instances.

Agricultural_populationUpdate

View for updating an existing Agricultural_population instance.

Arable_landCreate

View for creating a new Arable_land instance.

Arable_landDelete

View for deleting an existing Arable_land instance.

Arable_landDetailView

View for displaying a single Arable_land instance.

Arable_landListView

View for listing all Arable_land instances.

Arable_landUpdate

View for updating an existing Arable_land instance.

Arable_land_per_farmerCreate

View for creating a new Arable_land_per_farmer instance.

Arable_land_per_farmerDelete

View for deleting an existing Arable_land_per_farmer instance.

Arable_land_per_farmerDetailView

View for displaying a single Arable_land_per_farmer instance.

Arable_land_per_farmerListView

View for listing all Arable_land_per_farmer instances.

Arable_land_per_farmerUpdate

View for updating an existing Arable_land_per_farmer instance.

Crisis_consequenceCreate

View for creating a new Crisis_consequence instance.

Crisis_consequenceCreateHeavy

View for creating a new Crisis_consequence instance.

Crisis_consequenceDelete

View for deleting an existing Crisis_consequence instance.

Crisis_consequenceDetailView

View for displaying a single Crisis_consequence instance.

Crisis_consequenceListView

View for listing all Crisis_consequence instances.

Crisis_consequenceListViewAll

View for listing all Crisis_consequence instances.

Crisis_consequenceUpdate

View for updating an existing Crisis_consequence instance.

Crisis_consequenceUpdateHeavy

View for updating an existing Crisis_consequence instance.

Crop_failure_eventCreate

View for creating a new Crop_failure_event instance.

Crop_failure_eventDelete

View for deleting an existing Crop_failure_event instance.

Crop_failure_eventDetailView

View for displaying a single Crop_failure_event instance.

Crop_failure_eventListView

View for listing all Crop_failure_event instances.

Crop_failure_eventUpdate

View for updating an existing Crop_failure_event instance.

Disease_outbreakCreate

View for creating a new Disease_outbreak instance.

Disease_outbreakDelete

View for deleting an existing Disease_outbreak instance.

Disease_outbreakDetailView

View for displaying a single Disease_outbreak instance.

Disease_outbreakListView

View for listing all Disease_outbreak instances.

Disease_outbreakUpdate

View for updating an existing Disease_outbreak instance.

Drought_eventCreate

View for creating a new Drought_event instance.

Drought_eventDelete

View for deleting an existing Drought_event instance.

Drought_eventDetailView

View for displaying a single Drought_event instance.

Drought_eventListView

View for listing all Drought_event instances.

Drought_eventUpdate

View for updating an existing Drought_event instance.

External_conflictCreate

View for creating a new External_conflict instance.

External_conflictDelete

View for deleting an existing External_conflict instance.

External_conflictDetailView

View for displaying a single External_conflict instance.

External_conflictListView

View for listing all External_conflict instances.

External_conflictUpdate

View for updating an existing External_conflict instance.

External_conflict_sideCreate

View for creating a new External_conflict_side instance.

External_conflict_sideDelete

View for deleting an existing External_conflict_side instance.

External_conflict_sideDetailView

View for displaying a single External_conflict_side instance.

External_conflict_sideListView

View for listing all External_conflict_side instances.

External_conflict_sideUpdate

View for updating an existing External_conflict_side instance (side).

Famine_eventCreate

View for creating a new Famine_event instance.

Famine_eventDelete

View for deleting an existing Famine_event instance.

Famine_eventDetailView

View for displaying a single Famine_event instance.

Famine_eventListView

View for listing all Famine_event instances.

Famine_eventUpdate

View for updating an existing Famine_event instance.

Gdp_per_capitaCreate

View for creating a new Gdp_per_capita instance.

Gdp_per_capitaDelete

View for deleting an existing Gdp_per_capita instance.

Gdp_per_capitaDetailView

View for displaying a single Gdp_per_capita instance.

Gdp_per_capitaListView

View for listing all Gdp_per_capita instances.

Gdp_per_capitaUpdate

View for updating an existing Gdp_per_capita instance.

Gross_grain_shared_per_agricultural_populationCreate

View for creating a new Gross_grain_shared_per_agricultural_population instance.

Gross_grain_shared_per_agricultural_populationDelete

View for deleting an existing Gross_grain_shared_per_agricultural_population instance.

Gross_grain_shared_per_agricultural_populationDetailView

View for displaying a single Gross_grain_shared_per_agricultural_population instance.

Gross_grain_shared_per_agricultural_populationListView

View for listing all Gross_grain_shared_per_agricultural_population instances.

Gross_grain_shared_per_agricultural_populationUpdate

View for updating an existing Gross_grain_shared_per_agricultural_population instance.

Human_sacrificeCreate

View for creating a new Human_sacrifice instance.

Human_sacrificeDelete

View for deleting an existing Human_sacrifice instance.

Human_sacrificeDetailView

View for displaying a single Human_sacrifice instance.

Human_sacrificeListView

View for listing all Human_sacrifice instances.

Human_sacrificeListViewAll

View for listing all Human_sacrifice instances.

Human_sacrificeUpdate

View for updating an existing Human_sacrifice instance.

Internal_conflictCreate

View for creating a new Internal_conflict instance.

Internal_conflictDelete

View for deleting an existing Internal_conflict instance.

Internal_conflictDetailView

View for displaying a single Internal_conflict instance.

Internal_conflictListView

View for listing all Internal_conflict instances.

Internal_conflictUpdate

View for updating an existing Internal_conflict instance.

Locust_eventCreate

View for creating a new Locust_event instance.

Locust_eventDelete

View for deleting an existing Locust_event instance.

Locust_eventDetailView

View for displaying a single Locust_event instance.

Locust_eventListView

View for listing all Locust_event instances.

Locust_eventUpdate

View for updating an existing Locust_event instance.

Military_expenseCreate

View for creating a new Military_expense instance.

Military_expenseDelete

View for deleting an existing Military_expense instance.

Military_expenseDetailView

View for displaying a single Military_expense instance.

Military_expenseListView

View for listing all Military_expense instances.

Military_expenseUpdate

View for updating an existing Military_expense instance.

Net_grain_shared_per_agricultural_populationCreate

View for creating a new Net_grain_shared_per_agricultural_population instance.

Net_grain_shared_per_agricultural_populationDelete

View for deleting an existing Net_grain_shared_per_agricultural_population instance.

Net_grain_shared_per_agricultural_populationDetailView

View for displaying a single Net_grain_shared_per_agricultural_population instance.

Net_grain_shared_per_agricultural_populationListView

View for listing all Net_grain_shared_per_agricultural_population instances.

Net_grain_shared_per_agricultural_populationUpdate

View for updating an existing Net_grain_shared_per_agricultural_population instance.

Power_transitionCreate

View for creating a new Power_transition instance.

Power_transitionCreateHeavy

View for creating a new Power_transition instance.

Power_transitionDelete

View for deleting an existing Power_transition instance.

Power_transitionDetailView

View for displaying a single Power_transition instance.

Power_transitionListView

View for listing all Power_transition instances.

Power_transitionListViewAll

View for listing all Power_transition instances.

Power_transitionUpdate

View for updating an existing Power_transition instance.

Power_transitionUpdateHeavy

View for updating an existing Power_transition instance.

Silver_inflowCreate

View for creating a new Silver_inflow instance.

Silver_inflowDelete

View for deleting an existing Silver_inflow instance.

Silver_inflowDetailView

View for displaying a single Silver_inflow instance.

Silver_inflowListView

View for listing all Silver_inflow instances.

Silver_inflowUpdate

View for updating an existing Silver_inflow instance.

Silver_stockCreate

View for creating a new Silver_stock instance.

Silver_stockDelete

View for deleting an existing Silver_stock instance.

Silver_stockDetailView

View for displaying a single Silver_stock instance.

Silver_stockListView

View for listing all Silver_stock instances.

Silver_stockUpdate

View for updating an existing Silver_stock instance.

Socioeconomic_turmoil_eventCreate

View for creating a new Socioeconomic_turmoil_event instance.

Socioeconomic_turmoil_eventDelete

View for deleting an existing Socioeconomic_turmoil_event instance.

Socioeconomic_turmoil_eventDetailView

View for displaying a single Socioeconomic_turmoil_event instance.

Socioeconomic_turmoil_eventListView

View for listing all Socioeconomic_turmoil_event instances.

Socioeconomic_turmoil_eventUpdate

View for updating an existing Socioeconomic_turmoil_event instance.

SurplusCreate

View for creating a new Surplus instance.

SurplusDelete

View for deleting an existing Surplus instance.

SurplusDetailView

View for displaying a single Surplus instance.

SurplusListView

View for listing all Surplus instances.

SurplusUpdate

View for updating an existing Surplus instance.

Total_populationCreate

View for creating a new Total_population instance.

Total_populationDelete

View for deleting an existing Total_population instance.

Total_populationDetailView

View for displaying a single Total_population instance.

Total_populationListView

View for listing all Total_population instances.

Total_populationUpdate

View for updating an existing Total_population instance.

UsLocationCreateView

View for creating a new Us_location instance.

UsLocationListView

View for listing all Us_location instances.

UsLocationUpdateView

View for updating an existing Us_location instance.

UsViolenceCreateView

View for creating a new Us_violence instance.

UsViolenceDataSourceCreateView

View for creating a new Us_violence_data_source instance.

UsViolenceDataSourceListView

View for listing all Us_violence_data_source instances.

UsViolenceDataSourceUpdateView

View for updating an existing Us_violence_data_source instance.

UsViolenceListView

View for listing all Us_violence instances.

UsViolenceListViewPaginated

View for listing all Us_violence instances with pagination (100 per page).

UsViolenceSubtypeCreateView

View for creating a new Us_violence_subtype instance.

UsViolenceSubtypeListView

View for listing all Us_violence_subtype instances.

UsViolenceSubtypeUpdateView

View for updating an existing Us_violence_subtype instance.

UsViolenceUpdateView

View for updating an existing Us_violence instance.

Functions

QingVars(request)

View for listing all Qing Variables.

agricultural_population_download(request)

Download all Agricultural_population instances as CSV.

agricultural_population_meta_download(request)

Download the metadata for Agricultural_population instances as CSV.

arable_land_download(request)

Download all Arable_land instances as CSV.

arable_land_meta_download(request)

Download the metadata for Arable_land instances as CSV.

arable_land_per_farmer_download(request)

Download all Arable_land_per_farmer instances as CSV.

arable_land_per_farmer_meta_download(request)

Download the metadata for Arable_land_per_farmer instances as CSV.

confirm_delete_view(request, model_class, pk, var_name)

View for confirming the deletion of an object.

create_a_comment_with_a_subcomment(request, hs_instance_id)

Create a new comment instance with a subcomment and save them to the database.

crisis_consequence_download(request)

Download all Crisis_consequence instances as CSV.

crisis_consequence_meta_download(request)

Download the metadata for Crisis_consequence instances as CSV.

crop_failure_event_download(request)

Download all Crop_failure_event instances as CSV.

crop_failure_event_meta_download(request)

Download the metadata for Crop_failure_event instances as CSV.

delete_object_view(request, model_class, pk, var_name)

View for deleting an object.

disease_outbreak_download(request)

Download all Disease_outbreak instances as CSV.

disease_outbreak_meta_download(request)

Download the metadata for Disease_outbreak instances as CSV.

download_csv_all_american_violence(request)

Download all Us_violence instances as CSV.

download_csv_all_american_violence2(request)

Download all Us_violence instances as CSV.

drought_event_download(request)

Download all Drought_event instances as CSV.

drought_event_meta_download(request)

Download the metadata for Drought_event instances as CSV.

external_conflict_download(request)

Download all External_conflict instances as CSV.

external_conflict_meta_download(request)

Download the metadata for External_conflict instances as CSV.

external_conflict_side_download(request)

Download all External_conflict_side instances as CSV.

external_conflict_side_meta_download(request)

Download the metadata for External_conflict_side instances as CSV.

famine_event_download(request)

Download all Famine_event instances as CSV.

famine_event_meta_download(request)

Download the metadata for Famine_event instances as CSV.

fpl_all(request)

View for the Famine, Plague, and Locust page.

gdp_per_capita_download(request)

Download all Gdp_per_capita instances as CSV.

gdp_per_capita_meta_download(request)

Download the metadata for Gdp_per_capita instances as CSV.

get_citations_dropdown(request)

Get all citations as JSON.

gross_grain_shared_per_agricultural_population_download(request)

Download all Gross_grain_shared_per_agricultural_population instances as CSV.

gross_grain_shared_per_agricultural_population_meta_download(request)

Download the metadata for Gross_grain_shared_per_agricultural_population instances as CSV.

human_sacrifice_download(request)

Download all Human_sacrifice instances as CSV.

human_sacrifice_meta_download(request)

Download the metadata for Human_sacrifice instances as CSV.

internal_conflict_download(request)

Download all Internal_conflict instances as CSV.

internal_conflict_meta_download(request)

Download the metadata for Internal_conflict instances as CSV.

locust_event_download(request)

Download all Locust_event instances as CSV.

locust_event_meta_download(request)

Download the metadata for Locust_event instances as CSV.

military_expense_download(request)

Download all Military_expense instances as CSV.

military_expense_meta_download(request)

Download the metadata for Military_expense instances as CSV.

net_grain_shared_per_agricultural_population_download(request)

Download all Net_grain_shared_per_agricultural_population instances as CSV.

net_grain_shared_per_agricultural_population_meta_download(request)

Download the metadata for Net_grain_shared_per_agricultural_population instances as CSV.

playground(request)

View for the playground.

playgrounddownload(request)

Download the data from the playground.

power_transition_download(request)

Download all Power_transition instances as CSV.

power_transition_meta_download(request)

Download the metadata for Power_transition instances as CSV.

remove_html_tags(text)

silver_inflow_download(request)

Download all Silver_inflow instances as CSV.

silver_inflow_meta_download(request)

Download the metadata for Silver_inflow instances as CSV.

silver_stock_download(request)

Download all Silver_stock instances as CSV.

silver_stock_meta_download(request)

Download the metadata for Silver_stock instances as CSV.

socioeconomic_turmoil_event_download(request)

Download all Socioeconomic_turmoil_event instances as CSV.

socioeconomic_turmoil_event_meta_download(request)

Download the metadata for Socioeconomic_turmoil_event instances as CSV.

surplus_download(request)

Download all Surplus instances as CSV.

surplus_meta_download(request)

Download the metadata for Surplus instances as CSV.

total_population_download(request)

Download all Total_population instances as CSV.

total_population_meta_download(request)

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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.ListView

View 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.UpdateView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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'
class seshat.apps.crisisdb.views.Gross_grain_shared_per_agricultural_populationCreate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.CreateView

View 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_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/gross_grain_shared_per_agricultural_population/gross_grain_shared_per_agricultural_popu...
class seshat.apps.crisisdb.views.Gross_grain_shared_per_agricultural_populationDelete

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.DeleteView

View for deleting an existing Gross_grain_shared_per_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.Gross_grain_shared_per_agricultural_populationDetailView

Bases: django.views.generic.DetailView

View for displaying a single Gross_grain_shared_per_agricultural_population instance.

model
template_name = 'crisisdb/gross_grain_shared_per_agricultural_population/gross_grain_shared_per_agricultural_popu...
class seshat.apps.crisisdb.views.Gross_grain_shared_per_agricultural_populationListView

Bases: django.views.generic.ListView

View for listing all Gross_grain_shared_per_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/gross_grain_shared_per_agricultural_population/gross_grain_shared_per_agricultural_popu...
class seshat.apps.crisisdb.views.Gross_grain_shared_per_agricultural_populationUpdate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.UpdateView

View 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_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/gross_grain_shared_per_agricultural_population/gross_grain_shared_per_agricultural_popu...
class seshat.apps.crisisdb.views.Human_sacrificeCreate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, seshat.apps.general.mixins.PolityIdMixin, django.views.generic.edit.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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'
class seshat.apps.crisisdb.views.Net_grain_shared_per_agricultural_populationCreate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.CreateView

View 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_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/net_grain_shared_per_agricultural_population/net_grain_shared_per_agricultural_populati...
class seshat.apps.crisisdb.views.Net_grain_shared_per_agricultural_populationDelete

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.DeleteView

View for deleting an existing Net_grain_shared_per_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.Net_grain_shared_per_agricultural_populationDetailView

Bases: django.views.generic.DetailView

View for displaying a single Net_grain_shared_per_agricultural_population instance.

model
template_name = 'crisisdb/net_grain_shared_per_agricultural_population/net_grain_shared_per_agricultural_populati...
class seshat.apps.crisisdb.views.Net_grain_shared_per_agricultural_populationListView

Bases: django.views.generic.ListView

View for listing all Net_grain_shared_per_agricultural_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/net_grain_shared_per_agricultural_population/net_grain_shared_per_agricultural_populati...
class seshat.apps.crisisdb.views.Net_grain_shared_per_agricultural_populationUpdate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, django.views.generic.edit.UpdateView

View 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_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/net_grain_shared_per_agricultural_population/net_grain_shared_per_agricultural_populati...
class seshat.apps.crisisdb.views.Power_transitionCreate

Bases: django.contrib.auth.mixins.PermissionRequiredMixin, seshat.apps.general.mixins.PolityIdMixin, django.views.generic.edit.CreateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.ListView

View 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.UpdateView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View for displaying a single Surplus instance.

model
template_name = 'crisisdb/surplus/surplus_detail.html'
class seshat.apps.crisisdb.views.SurplusListView

Bases: django.views.generic.ListView

View 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.UpdateView

View 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.CreateView

View 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.DeleteView

View 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.DetailView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.ListView

View 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.UpdateView

View 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.CreateView

View 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.CreateView

View 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.ListView

View 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.UpdateView

View 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.ListView

View 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.ListView

View 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.CreateView

View 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.ListView

View 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.UpdateView

View 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.UpdateView

View 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

seshat.apps.crisisdb.views.gross_grain_shared_per_agricultural_population_download(request)

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

seshat.apps.crisisdb.views.gross_grain_shared_per_agricultural_population_meta_download(request)

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

seshat.apps.crisisdb.views.net_grain_shared_per_agricultural_population_download(request)

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

seshat.apps.crisisdb.views.net_grain_shared_per_agricultural_population_meta_download(request)

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