seshat.apps.general.models

Attributes

POLITY_ALTERNATE_RELIGION_CHOICES

POLITY_ALTERNATE_RELIGION_FAMILY_CHOICES

POLITY_ALTERNATE_RELIGION_GENUS_CHOICES

POLITY_CONSECUTIVE_ENTITY_CHOICES

POLITY_DEGREE_OF_CENTRALIZATION_CHOICES

POLITY_LANGUAGE_CHOICES

POLITY_LANGUAGE_GENUS_CHOICES

POLITY_LINGUISTIC_FAMILY_CHOICES

POLITY_RELATIONSHIP_TO_PRECEDING_ENTITY_CHOICES

POLITY_RELIGION_CHOICES

POLITY_RELIGION_FAMILY_CHOICES

POLITY_RELIGION_GENUS_CHOICES

POLITY_SUPRAPOLITY_RELATIONS_CHOICES

Classes

Polity_alternate_religion

This model is used to store the information about the alternate religion of

Polity_alternate_religion_family

This model is used to store the information about the alternate religion family

Polity_alternate_religion_genus

This model is used to store the information about the alternate religion genus

Polity_alternative_name

This model is used to store the information about the alternative names of

Polity_capital

This model is used to store the information about the capitals of the

Polity_degree_of_centralization

This model is used to store the information about the degree of

Polity_duration

This model is used to store the information about the duration of the

Polity_editor

This model is used to store the information about the editors of the polities.

Polity_expert

This model is used to store the information about the experts of the polities.

Polity_language

This model is used to store the information about the languages of the

Polity_language_genus

This model is used to store the information about the language genus of the

Polity_linguistic_family

This model is used to store the information about the linguistic family

Polity_original_name

This model is used to store the information about the original names of the

Polity_peak_years

This model is used to store the information about the peak years of the

Polity_preceding_entity

This model is used to store the information about the preceding entities of

Polity_relationship_to_preceding_entity

This model is used to store the information about the relationship of the

Polity_religion

This model is used to store the information about the religion of the

Polity_religion_family

This model is used to store the information about the religion family of the

Polity_religion_genus

This model is used to store the information about the religion genus of the

Polity_religious_tradition

This model is used to store the information about the religious tradition of

Polity_research_assistant

This model is used to store the information about the research assistants

Polity_scale_of_supracultural_interaction

This model is used to store the information about the scale of supracultural

Polity_succeeding_entity

This model is used to store the information about the succeeding entities of

Polity_supracultural_entity

This model is used to store the information about the supracultural entity of

Polity_suprapolity_relations

This model is used to store the information about the supra-polity

Polity_utm_zone

This model is used to store the information about the UTM zone of the

Functions

call_my_name(self)

This function is used to return the name of the model instance (in lieu of

clean_times(self)

This function is used to validate the year_from and year_to fields of the

return_citations(self)

This function is used to return the citations of the model instance

Module Contents

class seshat.apps.general.models.Polity_alternate_religion

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the alternate religion of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_alternate_religion'
verbose_name_plural = 'Polity_alternate_religions'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the alternate religion of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The alternate religion of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

alternate_religion
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
class seshat.apps.general.models.Polity_alternate_religion_family

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the alternate religion family of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_alternate_religion_family'
verbose_name_plural = 'Polity_alternate_religion_families'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the alternate religion family of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The alternate religion family of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

alternate_religion_family
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
class seshat.apps.general.models.Polity_alternate_religion_genus

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the alternate religion genus of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_alternate_religion_genus'
verbose_name_plural = 'Polity_alternate_religion_genus'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the alternate religion genus of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The alternate religion genus of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

alternate_religion_genus
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
class seshat.apps.general.models.Polity_alternative_name

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the alternative names of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_alternative_name'
verbose_name_plural = 'Polity_alternative_names'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the alternative name (if it exists, otherwise return a dash).

Returns:

The alternative name (or “ - “ if it does not exist).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

alternative_name
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
class seshat.apps.general.models.Polity_capital

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the capitals of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_capital'
verbose_name_plural = 'Polity_capitals'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the capital of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The capital of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

capital
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
polity_cap
class seshat.apps.general.models.Polity_degree_of_centralization

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the degree of centralization of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_degree_of_centralization'
verbose_name_plural = 'Polity_degree_of_centralizations'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the degree of centralisation of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The degree of centralisation of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

degree_of_centralization
property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
class seshat.apps.general.models.Polity_duration

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the duration of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_duration'
verbose_name_plural = 'Polity_durations'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the duration of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The duration of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
polity_year_from
polity_year_to
class seshat.apps.general.models.Polity_editor

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the editors of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_editor'
verbose_name_plural = 'Polity_editors'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the editor of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The editor of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

editor
name
class seshat.apps.general.models.Polity_expert

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the experts of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_expert'
verbose_name_plural = 'Polity_experts'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the expert of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The expert of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

expert
name
class seshat.apps.general.models.Polity_language

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the languages of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_language'
verbose_name_plural = 'Polity_languages'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the language of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The language of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

language
name
class seshat.apps.general.models.Polity_language_genus

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the language genus of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_language_genus'
verbose_name_plural = 'Polity_language_genus'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the language genus of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The language genus of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

language_genus
name
class seshat.apps.general.models.Polity_linguistic_family

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the linguistic family of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_linguistic_family'
verbose_name_plural = 'Polity_linguistic_families'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the linguistic family of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The linguistic family of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

linguistic_family
name
class seshat.apps.general.models.Polity_original_name

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the original names of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_original_name'
verbose_name_plural = 'Polity_original_names'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the original name (if it exists, otherwise return a dash).

Returns:

The original name (or “ - “ if it does not exist).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
original_name
class seshat.apps.general.models.Polity_peak_years

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the peak years of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_peak_years'
verbose_name_plural = 'Polity_peak_years'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the peak years of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The peak years of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
peak_year_from
peak_year_to
class seshat.apps.general.models.Polity_preceding_entity

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the preceding entities of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_preceding_entity'
verbose_name_plural = 'Polity_preceding_entities'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

display_value()

Depending on the instance, return a HTML string with information about the instance’s other_polity attribute and its relationship to its preceding entity, the preceding entity (if it exists) or a dash if the preceding entity does not exist on the instance.

Returns:

A string representation of the instance’s other_polity/preceding entity relationship or a dash if the preceding entity does not exist on the instance.

Return type:

str

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the polity’s preceding entity, its long name, and its new name (if it exists on the instance, otherwise, if there’s a preceding entity, return its name, otherwise return a dash).

Returns:

A string representation of polity’s preceding entity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

merged_old_data
name
other_polity
preceding_entity
relationship_to_preceding_entity
class seshat.apps.general.models.Polity_relationship_to_preceding_entity

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the relationship of the polities to their preceding entities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_relationship_to_preceding_entity'
verbose_name_plural = 'Polity_relationship_to_preceding_entities'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the polity’s relationship to the preceding entity (if it exists on the instance, otherwise return a dash).

Returns:

The polity’s relationship to the preceding entity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
relationship_to_preceding_entity
class seshat.apps.general.models.Polity_religion

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the religion of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_religion'
verbose_name_plural = 'Polity_religions'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the religion of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The religion of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
religion
class seshat.apps.general.models.Polity_religion_family

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the religion family of the

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_religion_family'
verbose_name_plural = 'Polity_religion_families'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the religion family of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The religion family of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
religion_family
class seshat.apps.general.models.Polity_religion_genus

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the religion genus of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_religion_genus'
verbose_name_plural = 'Polity_religion_genus'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the religion genus of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The religion genus of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
religion_genus
class seshat.apps.general.models.Polity_religious_tradition

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the religious tradition of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_religious_tradition'
verbose_name_plural = 'Polity_religious_traditions'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the religious tradition of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The religious tradition of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
religious_tradition
class seshat.apps.general.models.Polity_research_assistant

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the research assistants of the polities.

class Meta
Noindex:

ordering = ['polity_ra', 'year_from', 'year_to']
verbose_name = 'Polity_research_assistant'
verbose_name_plural = 'Polity_research_assistants'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the name of the research assistant (if it exists, otherwise return a dash).

Returns:

The name of the research assistant (or “ - “ if it does not exist).

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
polity_ra
class seshat.apps.general.models.Polity_scale_of_supracultural_interaction

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the scale of supracultural interaction of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_scale_of_supracultural_interaction'
verbose_name_plural = 'Polity_scale_of_supracultural_interactions'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

display_value()

Return the polity’s scale of supracultural interaction (if it exists on the instance, otherwise return a dash).

Returns:

The supracultural interaction of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()
sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
scale_from
scale_to
class seshat.apps.general.models.Polity_succeeding_entity

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the succeeding entities of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_succeeding_entity'
verbose_name_plural = 'Polity_succeeding_entities'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the succeeding entity of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The succeeding entity of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
succeeding_entity
class seshat.apps.general.models.Polity_supracultural_entity

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the supracultural entity of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_supracultural_entity'
verbose_name_plural = 'Polity_supracultural_entities'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the supracultural entity of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The supracultural entity of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
supracultural_entity
class seshat.apps.general.models.Polity_suprapolity_relations

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the supra-polity relations of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_suprapolity_relations'
verbose_name_plural = 'Polity_suprapolity_relations'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

display_value()
display_value_2()
get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the supra polity relations of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The supra polity relations of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
other_polity
supra_polity_relations
class seshat.apps.general.models.Polity_utm_zone

Bases: seshat.apps.core.models.SeshatCommon

This model is used to store the information about the UTM zone of the polities.

class Meta
Noindex:

ordering = ['year_from', 'year_to']
verbose_name = 'Polity_utm_zone'
verbose_name_plural = 'Polity_utm_zones'
clean()

Validate the year_from and year_to fields of the model instance.

Noindex:

Note

The method an alias for the clean_times function.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

clean_name()

Return the name of the model instance.

Noindex:

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The name of the model instance.

Return type:

str

clean_name_spaced()

Return the name of the model instance with spaces.

Note

TODO This method should probably just be an attribute set on the model instead.

get_absolute_url()

Returns the url to access a particular instance of the model.

Noindex:

Returns:

A string of the url to access a particular instance of the model.

Return type:

str

show_value()

Return the UTM zone of the polity (if it exists on the instance, otherwise return a dash).

Returns:

The UTM zone of the polity (or “ - “ if it does not exist on the instance).

Return type:

str

sub_subsection()

Return the subsection’s subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

None

subsection()

Return the subsection of the model instance.

Note

TODO This method should probably just be an attribute set on the model instead.

Returns:

The subsection of the model instance.

Return type:

str

property display_citations

Display the citations of the model instance.

Noindex:

Note

The method is a property, and an alias for the return_citations function.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

name
utm_zone
seshat.apps.general.models.call_my_name(self)

This function is used to return the name of the model instance (in lieu of the __str__ representation of the model instance).

Note

The model instance must have the following attributes: - name - polity (and polity.name) - year_from - year_to

Parameters:

self (model instance) – The model instance.

Returns:

The name of the model instance.

Return type:

str

seshat.apps.general.models.clean_times(self)

This function is used to validate the year_from and year_to fields of the model instance (called from each model’s clean method).

Note

The model instance must have the following attributes: - year_from - year_to - polity (and polity.start_year and polity.end_year)

Parameters:

self (model instance) – The model instance.

Returns:

None

Raises:
  • ValidationError – If the year_from is greater than the year_to.

  • ValidationError – If the year_from is out of range.

  • ValidationError – If the year_from is earlier than the start year of the corresponding polity.

  • ValidationError – If the year_to is later than the end year of the corresponding polity.

  • ValidationError – If the year_to is out of range.

seshat.apps.general.models.return_citations(self)

This function is used to return the citations of the model instance (returning the value used in the display_citations method of the model instance).

Note

The model instance must have the following attribute: - citations

The model instance must have the following methods: - zoteroer

Parameters:

self (model instance) – The model instance.

Returns:

The citations of the model instance, separated by comma.

Return type:

str

seshat.apps.general.models.POLITY_ALTERNATE_RELIGION_CHOICES = (('Islam', 'Islam'), ('Shadhil', 'Shadhil'), ('Karrami', 'Karrami'), ('Hanafi', 'Hanafi'),...
seshat.apps.general.models.POLITY_ALTERNATE_RELIGION_FAMILY_CHOICES = (('Saivist Traditions', 'Saivist Traditions'), ('Assyrian Religions', 'Assyrian Religions'),...
seshat.apps.general.models.POLITY_ALTERNATE_RELIGION_GENUS_CHOICES = (('Zoroastrianism', 'Zoroastrianism'), ('Graeco-Bactrian Religions', 'Graeco-Bactrian...
seshat.apps.general.models.POLITY_CONSECUTIVE_ENTITY_CHOICES = (('continuity', 'continuity'), ('elite replacement', 'elite replacement'), ('absorption',...
seshat.apps.general.models.POLITY_DEGREE_OF_CENTRALIZATION_CHOICES = (('loose', 'loose'), ('confederated state', 'confederated state'), ('unitary state', 'unitary...
seshat.apps.general.models.POLITY_LANGUAGE_CHOICES = (('Polish', 'Polish'), ('Pashto', 'Pashto'), ('Persian', 'Persian'), ('Greek', 'Greek'),...
seshat.apps.general.models.POLITY_LANGUAGE_GENUS_CHOICES = (('uncoded', 'uncoded'), ('Afro-Asiatic', 'Afro-Asiatic'), ('Indo-European', 'Indo-European'),...
seshat.apps.general.models.POLITY_LINGUISTIC_FAMILY_CHOICES = (('Indo-European', 'Indo-European'), ('Sino-Tibetan', 'Sino-Tibetan'), ('uncoded', 'uncoded'),...
seshat.apps.general.models.POLITY_RELATIONSHIP_TO_PRECEDING_ENTITY_CHOICES = (('continuity', 'continuity'), ('elite replacement', 'elite replacement'), ('absorption',...
seshat.apps.general.models.POLITY_RELIGION_CHOICES = (('Islam', 'Islam'), ('Shadhil', 'Shadhil'), ('Karrami', 'Karrami'), ('Hanafi', 'Hanafi'),...
seshat.apps.general.models.POLITY_RELIGION_FAMILY_CHOICES = (('Saivist Traditions', 'Saivist Traditions'), ('Assyrian Religions', 'Assyrian Religions'),...
seshat.apps.general.models.POLITY_RELIGION_GENUS_CHOICES = (('Zoroastrianism', 'Zoroastrianism'), ('Graeco-Bactrian Religions', 'Graeco-Bactrian...
seshat.apps.general.models.POLITY_SUPRAPOLITY_RELATIONS_CHOICES = (('vassalage', 'vassalage to'), ('alliance', 'alliance with'), ('nominal allegiance', 'nominal...