Skip to content

v1.26.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 09:42
· 19 commits to main since this release

Features

  • Captcha. A self-hosted captcha for your site's public forms,
    content_studio.contrib.captcha: the visitor's browser solves a small
    proof of work (the Cap protocol), with no third party and no tracking.
    Include content_studio.contrib.captcha.urls outside the admin, at any
    path (api/cap/ in the docs), and add CaptchaField to a Django form
    (content_studio.contrib.captcha.forms, rendered with {{ form.media }})
    or to a serializer (content_studio.contrib.captcha.fields), or call
    verify_captcha(token). A token is valid once and for 20 minutes.
    CAPTCHA_CSP lists what the page's Content-Security-Policy must allow.
    New settings CAPTCHA (off passes every check and renders no widget),
    CAPTCHA_CHALLENGES (50), CAPTCHA_DIFFICULTY (4) and
    CAPTCHA_THROTTLE_RATE ("30/minute" per IP address); configure()
    reads the CAPTCHA (on/off) and CAPTCHA_THROTTLE_RATE environment
    variables. captcha_token() from content_studio.contrib.captcha.testing
    gives your tests a valid token. CaptchaStatisticWidget
    (content_studio.contrib.captcha.dashboard) shows on the dashboard how
    many challenges visitors solved over 7, 30 or 90 days, with the trend, a
    sparkline and the failed attempts in the footnote. Backups leave captcha challenges and
    tokens out. manage.py check reports a captcha setting that cannot work
    with content_studio.E066, and the app's URLs missing with
    content_studio.W043. The widget (@cap.js/widget 0.1.58) and solver
    (@cap.js/wasm 0.0.8) are vendored under the Apache License 2.0.
  • Notification digest and pruning on Huey. With Huey installed, the
    worker sends the notification digest every hour at :10 (when
    NOTIFICATION_EMAIL_DIGEST and ADMIN_URL are set) and prunes
    notifications daily at 04:30 (NOTIFICATION_RETENTION), each under a lock
    so two workers never run it at once. With TASKS_URL=db:// a project now
    needs only its database: no Redis and no cron. Both tasks show on the
    system status page with their last run, from Huey or cron. Remove the cron
    lines for content_studio_send_notification_digest and
    content_studio_prune_notifications when you move to Huey.

Fixes

  • The scheduled publishing run showed twice on the system status page with
    Huey: once by its Huey name and once as Scheduled publishing.