coalition.campaigns.models.policy_campaign

PolicyCampaign model for advocacy campaigns.

Classes

PolicyCampaign

Represents a policy advocacy campaign that stakeholders can endorse.

Module Contents

class coalition.campaigns.models.policy_campaign.PolicyCampaign(*args, **kwargs)[source]

Bases: 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.

name[source]
title[source]
summary[source]
description[source]
endorsement_statement[source]
allow_endorsements[source]
endorsement_form_instructions[source]
created_at[source]
active[source]
image[source]
class Meta[source]
db_table = 'campaign'[source]
__str__() str[source]
current_bills() django.db.models.QuerySet[Bill][source]
save(*args: Any, **kwargs: Any) None[source]

Sanitize HTML fields before saving to prevent XSS attacks.