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