Skip to content

Add community governance polls app (#518)#519

Merged
bpepple merged 1 commit intomasterfrom
518-add-community-governance-polls-app
Apr 24, 2026
Merged

Add community governance polls app (#518)#519
bpepple merged 1 commit intomasterfrom
518-add-community-governance-polls-app

Conversation

@bpepple
Copy link
Copy Markdown
Member

@bpepple bpepple commented Apr 23, 2026

Summary

  • Adds a new polls Django app that allows site admins to create time-bounded community governance polls
  • Registered users can cast a single vote per poll during the active window and view live results (with progress bars) after voting or once the poll closes
  • Poll creation and management is staff-only via the Django admin; the admin includes inline choice editing and a read-only vote audit log
  • HTMX-powered vote submission on the detail page — no full-page reload

Models

  • Poll — title, description, created_by, start/end dates
  • PollChoice — ordered answer options per poll
  • PollVote — one vote per user per poll (unique_together enforced)

URLs

  • /polls/ — list (active, upcoming, closed)
  • /polls/<id>/ — detail with voting form or results
  • /polls/<id>/vote/ — HTMX POST endpoint
  • /polls/<id>/delete/ — staff-only delete

View

List View

Screenshot From 2026-04-23 12-32-46

Detail View

Screenshot From 2026-04-23 12-33-06

Introduces a new `polls` app that lets site admins create time-bounded community governance polls. Registered users can cast a single vote per poll during the active window and view live results afterward.
@bpepple bpepple added the enhancement New feature or request label Apr 23, 2026
@bpepple bpepple linked an issue Apr 23, 2026 that may be closed by this pull request
@bpepple bpepple merged commit d76b7f9 into master Apr 24, 2026
2 checks passed
@bpepple bpepple deleted the 518-add-community-governance-polls-app branch April 24, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add community governance polls app

1 participant