Models

class taxonomy.models.TaxonomyBase(*args, **kwargs)

An abstract model for a TaxonomyBase object. This model can be used as the foundation for all other taxonomy models.

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Order(*args, **kwargs)

A model that represents an Order object.

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Family(*args, **kwargs)

A model that represents a Family object.

order

The order to which the family belongs.

Type:

Order

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Subfamily(*args, **kwargs)

A model that represents a Subfamily object.

family

The family to which the subfamily belongs.

Type:

Family

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Tribe(*args, **kwargs)

A model that represents a Tribe object.

subfamily

The subfamily to which the tribe belongs.

Type:

Subfamily

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Genus(*args, **kwargs)

A model that represents a Genus object.

tribe

The tribe to which the genus belongs.

Type:

Tribe

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a TaxonomyBase object instance.

Returns:

A string that refers to a Taxonomy object instance.

class taxonomy.models.Species(*args, **kwargs)

A model that represents a Species object.

genus

The genus to which the species belongs.

Type:

Genus

mona

The MONA (Hodges) number for the species (Lepidoptera only).

Type:

str

p3

The P3 (Pohl, Patterson, Pelham 2016) number for the species (Lepidoptera only).

Type:

str

ps

The Phylogenetic Sequence (Pohl and Nanz, 2023) number for the species (Lepidoptera only).

Type:

str

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a Species object instance.

Returns:

A string that refers to a Species object instance.

binomial

The species’ binomial (genus + species).

class taxonomy.models.Subspecies(*args, **kwargs)

A model that represents a Subspecies object.

species

The species to which the subspecies belongs.

Type:

Species

mona

The MONA (Hodges) number for the subspecies (Lepidoptera only).

Type:

str

p3

The P3 (Pohl, Patterson, Pelham 2016) number for the subspecies (Lepidoptera only).

Type:

str

ps

The Phylogenetic Sequence (Pohl and Nanz, 2023) number for the subspecies (Lepidoptera only).

Type:

str

name

The scientific name of the taxon.

Type:

str

common_name

The common name of the taxon, if it has one.

Type:

str

authority

The authority of the taxon.

Type:

str

date_created

The date when the object instance was created. Inherited from TimeStampMixin.

Type:

datetime

date_modified

The date when the object instance was last modified. Inherited from TimeStampMixin.

Type:

datetime

__str__()

Returns a string representation of a Subspecies object instance.

Returns:

A string that refers to a Subspecies object instance.

trinomial

The subspecies’ trinomial (genus + species + subspecies).