Models

class pages.models.SpeciesPage(*args, **kwargs)

The model that represents an individual species page.

Included in this model is the wagtail_footnotes package, so that references can be added to the page’s content. The ultimate goal would be to structure them on the frontend in a manner similar to Wikipedia’s footnotes.

species

The species that is associated with this page. This is a one to one relationship (a page can have only one species, and a species can have only one page).

Type:

Species

taxonomy

A Wagtail field for adding taxonomy details about a species.

Type:

RichTextField

description

A Wagtail field for adding a description for a species.

Type:

RichTextField

distribution

A Wagtail field for adding information about a species’ distribution.

Type:

RichTextField

seasonality

A Wagtail field for describing a species’ seasonality (or flight periods, in the case of Lepidoptera).

Type:

RichTextField

habitat

A Wagtail field for detailing the habitat of a species

Type:

RichTextField

food

A Wagtail field for listing a species’ food sources (both for larval and adult stages).

Type:

RichTextField

life_cycle

A Wagtail field for including details about a species’ life cycle.

Type:

RichTextField

__str__()

Return str(self).

subspecies

An array of subspecies that belong to this page’s species object.