Skip to content

Remove dead Banner cruft from views (#661)#1392

Merged
jonfroehlich merged 1 commit into
masterfrom
661-remove-dead-banner-cruft
Jun 24, 2026
Merged

Remove dead Banner cruft from views (#661)#1392
jonfroehlich merged 1 commit into
masterfrom
661-remove-dead-banner-cruft

Conversation

@jonfroehlich

Copy link
Copy Markdown
Member

Closes #661 (closed as obsolete) by removing the dead code it leaves behind.

What & why

Issue #661 (2018) asked for banners on multiple pages/projects, built around an old admin Page: dropdown that no longer exists. The Banner model was since refactored to landing_page (boolean) + a single project FK, and banners render only on the landing page and one project page.

The "other page types" (People/News) design was never wired up — it survived only as dead stubs:

  • website/views/member.py — commented Banner.objects.filter(page=Banner.PEOPLE) / displayed_banners lines + the commented 'banners' context entry
  • website/views/people.py — unused Banner import
  • website/views/news_listing.py — unused Banner import

This PR deletes all of it. ml_utils is kept in member.py (still used elsewhere).

Scope

No behavior change — purely removing commented/unused code. No model, template, or URL changes.

🤖 Generated with Claude Code

The 2018 design that put banners on multiple page types (People, News,
etc.) was never implemented — it only ever existed as commented-out
Banner.PEOPLE / page= stubs plus now-unused Banner imports. Banners
today render only on the landing page and one project page, so this
code is dead. Removing it alongside closing #661 as obsolete.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonfroehlich jonfroehlich merged commit 3305982 into master Jun 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Banner should be able to be added to multiple pages and multiple projects

1 participant