Skip to content

packages/django-postgres-cache: fix naive datetime warning (cherry-pick #23033 to version-2026.5) - #23235

Merged
BeryJu merged 1 commit into
version-2026.5from
cherry-pick/23033-to-version-2026.5
Jun 21, 2026
Merged

BeryJu merged 1 commit into
version-2026.5from
cherry-pick/23033-to-version-2026.5

Conversation

@authentik-automation

Copy link
Copy Markdown
Contributor

Cherry-pick of #23033 to version-2026.5 branch.

Original PR: #23033
Original Author: @joaocfernandes
Cherry-picked commit: 86e9798

* packages/django-postgres-cache: fix naive datetime warning when timeout=None with USE_TZ=True

The _base_set_expiry method in DatabaseCache returned datetime.max (a
timezone-naive value) when timeout=None, while the project runs with
USE_TZ=True.

This caused Django to emit a RuntimeWarning on every cache write that
 passes timeout=None:

    DateTimeField CacheEntry.expires received a naive datetime (...)
    while time zone support is active.

* fix linting

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Jun 21, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6c3b391
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a38451f77a2fa000896e869
😎 Deploy Preview https://deploy-preview-23235--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jun 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (d975251) to head (6c3b391).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##           version-2026.5   #23235   +/-   ##
===============================================
  Coverage           93.24%   93.24%           
===============================================
  Files                1033     1033           
  Lines               60181    60181           
  Branches              400      400           
===============================================
  Hits                56118    56118           
  Misses               4063     4063           
Flag Coverage Δ
conformance 36.54% <ø> (+<0.01%) ⬆️
e2e 41.78% <ø> (+<0.01%) ⬆️
integration 32.98% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.20% <ø> (-0.01%) ⬇️
unit-migrate 92.22% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@BeryJu
BeryJu merged commit 060b870 into version-2026.5 Jun 21, 2026
99 checks passed
@BeryJu
BeryJu deleted the cherry-pick/23033-to-version-2026.5 branch June 21, 2026 20:33
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6c3b391d57f0695c977e1da2a3cd8c7e97e889a4
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-6c3b391d57f0695c977e1da2a3cd8c7e97e889a4

Afterwards, run the upgrade commands from the latest release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants