Skip to content

Added flatpages-extra #2144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bmispelon
Copy link
Member

@bmispelon bmispelon commented Aug 1, 2025

This PR adds django-flatpages-extra, which is a package I created after a discussion with @StephanieAG from the fundraising WG on how to make it easier to update flat pages.

As you can tell from the very short PR, the package is a drop-in replacement and is reversible. It adds the following features to the admin:

  • The ability to create a revision for a flat page
  • preview revisions (including a shareable link for people who don't have an admin account)
  • reverting revisions
  • better history of changes for flat pages

Initially I was going to develop this as an app in this project, but then realized it might be useful as a 3rd party too. If accepted I would release a 1.0 of the package.

Screenshots:

Editing content directly is disabled Screenshot 2025-08-02 at 12-02-50 _accessibility_ -- Django Accessibility Statement! Change flat page Django site admin
Preview page Screenshot 2025-08-02 at 12-07-34 Django Accessibility Statement! Django
Compare view (diff) Screenshot 2025-08-02 at 12-08-18 Comparing revision with original Django site admin

@bmispelon bmispelon force-pushed the flatpages-extra branch 3 times, most recently from 9973089 to aa27de7 Compare August 1, 2025 23:46
@bmispelon bmispelon marked this pull request as ready for review August 1, 2025 23:52
@bmispelon bmispelon marked this pull request as draft August 2, 2025 11:02
@bmispelon bmispelon marked this pull request as ready for review August 2, 2025 12:40
@ulgens
Copy link
Member

ulgens commented Aug 7, 2025

Adding the link for easier review: https://pypi.org/project/django-flatpages-extra/

@ulgens
Copy link
Member

ulgens commented Aug 7, 2025

+1 for having the "is published" feature and revisions, but not sure about offloading both of them to a new package.

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.

2 participants