entity models¶
-
class
entity.models.
Person
(*args, **kwargs)¶ A real human being.🎵
-
save
(*args, **kwargs)¶ uid:
person:{slug}
-
-
class
entity.models.
Jurisdiction
(*args, **kwargs)¶ A Jurisdiction represents a logical unit of governance, comprised of a collection of legislative bodies, administrative offices or public services.
For example: the United States Federal Government, the Government of the District of Columbia, Columbia Missouri City Government, etc.
-
save
(*args, **kwargs)¶ uid:
{division.uid}_jurisdiction:{slug}
-
-
class
entity.models.
Body
(*args, **kwargs)¶ A body represents a collection of offices or individuals organized around a common government or public service function.
For example: the U.S. Senate, Florida House of Representatives, Columbia City Council, etc.
Note
Duplicate slugs are allowed on this model to accomodate states, for example:
- florida/senate/
- michigan/senate/
-
save
(*args, **kwargs)¶ uid:
{jurisdiction.uid}_body:{slug}
-
class
entity.models.
Office
(*args, **kwargs)¶ An office represents a post, seat or position occuppied by an individual as a result of an election.
For example: Senator, Governor, President, Representative.
In the case of executive positions, like governor or president, the office is tied directlty to a jurisdiction. Otherwise, the office ties to a body tied to a jurisdiction.
Note
Duplicate slugs are allowed on this model to accomodate states, for example:
- florida/house/seat-2/
- michigan/house/seat-2/
-
is_executive
()¶ Is this an executive office?
-
save
(*args, **kwargs)¶ uid:
{body.uid | jurisdiction.uid}_office:{slug}