Mandate

This document provides the API references for the mandates in the database.

API

class models.Mandate

A mandate is a time-interval corresponding to a mandate in the parliament of a deputy. A mandate require always a district and a party.

All the fields of this model are retrieved from parliament website using a crawler.

deputy

The models.Deputy of the mandate.

legislature

The models.Legislature of the mandate.

party

The parlamentary group this mandate is respective to. A ForeignKey to models.Party.

district

The district this mandate is respective to. This is a ForeignKey to models.District.

The next two fields are required because some mandates end before the legislature ends.

date_start

The date corresponding to the beginning of the mandate.

date_end

The date corresponding to the end of the mandate. It can be null when is an ongoing legislature.