coalition.campaigns.models.policy_campaign ========================================== .. py:module:: coalition.campaigns.models.policy_campaign .. autoapi-nested-parse:: PolicyCampaign model for advocacy campaigns. Classes ------- .. autoapisummary:: coalition.campaigns.models.policy_campaign.PolicyCampaign Module Contents --------------- .. py:class:: PolicyCampaign(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Represents a policy advocacy campaign that stakeholders can endorse. Campaigns are the central organizing unit of the platform. Each campaign represents a specific policy position that organizations and individuals can publicly endorse. Campaigns can be linked to specific legislation at federal and state levels. The campaign includes public-facing content (title, summary, description) as well as administrative settings for endorsement collection and moderation. .. py:attribute:: name .. py:attribute:: title .. py:attribute:: summary .. py:attribute:: description .. py:attribute:: endorsement_statement .. py:attribute:: allow_endorsements .. py:attribute:: endorsement_form_instructions .. py:attribute:: created_at .. py:attribute:: active .. py:attribute:: image .. py:class:: Meta .. py:attribute:: db_table :value: 'campaign' .. py:method:: __str__() -> str .. py:method:: current_bills() -> django.db.models.QuerySet[Bill] .. py:method:: save(*args: Any, **kwargs: Any) -> None Sanitize HTML fields before saving to prevent XSS attacks.