Skip to main content

# Publish Preflight

## What is this?

Ever wanted to be able to save a draft in wagtail easily, but want lots of required fields for publish? Of course you have. This plugin creates some custom model validation that allows for drafts to be saved, but prevents publishing.

It is VERY much in it’s infancy and really more of a proof of concept.

## How to use

  • install

  • add to INSTALLED_APPS

  • (atm), include static js or css on the templates where you want the overrides to occur (is there a better way to do this?)

## TODOs:

  • messages are hidden, becuase at the moment it will create a big ol’ list of messages which could get ugly - would love to have a nuanced way to add errors to fields but not show errors in messages at the top - setting different kind of error levels would be great too - this would probably involve a custom message protocol, to either replace or enhance the way wagtail handles messages add_error

  • right now we check for any and all empty fields, we want to be able to define which fields to check - Whats a good interface for this? config file? Being able to define on each model similar to Blank=True seems best to me

Release files for wagtail-publish-preflight 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-publish-preflight 0.4
File Size Uploaded
wagtail-publish-preflight-0.4.tar.gz 4.4 kB Details

Release files / wagtail-publish-preflight-0.4.tar.gz

Download URL wagtail-publish-preflight-0.4.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b63e28f0f3792986d811b54047e1a131fccfdfbfed5df29ae702daea06d2060f
BLAKE2b-256 checksum
How to use checksums
999587181a4f413c68cc803183b0e19df8b6ba9433699759ed10a00b649fd898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page