coalition.campaigns.models.bill

Bill model for legislative bills linked to campaigns.

Classes

Bill

Model representing legislative bills at federal and state levels.

Module Contents

class coalition.campaigns.models.bill.Bill(*args, **kwargs)[source]

Bases: django.db.models.Model

Model representing legislative bills at federal and state levels.

level[source]
policy[source]
number[source]
title[source]
chamber[source]
session[source]
state[source]
introduced_date[source]
status[source]
url[source]
is_primary[source]
related_bill[source]
sponsors[source]
cosponsors[source]
class Meta[source]
db_table = 'bill'[source]
verbose_name = 'Bill'[source]
verbose_name_plural = 'Bills'[source]
ordering = ['-introduced_date', 'chamber', 'number'][source]
__str__() str[source]
clean() None[source]

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.