coalition.campaigns.models.bill =============================== .. py:module:: coalition.campaigns.models.bill .. autoapi-nested-parse:: Bill model for legislative bills linked to campaigns. Classes ------- .. autoapisummary:: coalition.campaigns.models.bill.Bill Module Contents --------------- .. py:class:: Bill(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Model representing legislative bills at federal and state levels. .. py:attribute:: level .. py:attribute:: policy .. py:attribute:: number .. py:attribute:: title .. py:attribute:: chamber .. py:attribute:: session .. py:attribute:: state .. py:attribute:: introduced_date .. py:attribute:: status .. py:attribute:: url .. py:attribute:: is_primary .. py:attribute:: related_bill .. py:attribute:: sponsors .. py:attribute:: cosponsors .. py:class:: Meta .. py:attribute:: db_table :value: 'bill' .. py:attribute:: verbose_name :value: 'Bill' .. py:attribute:: verbose_name_plural :value: 'Bills' .. py:attribute:: ordering :value: ['-introduced_date', 'chamber', 'number'] .. py:method:: __str__() -> str .. py:method:: clean() -> None 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.