Skip to content

Conversation

@dominic-r
Copy link
Member

django’s default create_superuser tries to set is_staff/is_superuser, but our User exposes these as read-only properties which are derived from group membershp

that would cause the attribute error seen in the user report.

Closes: #16212

Details

REPLACE ME


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@dominic-r dominic-r requested a review from a team as a code owner August 18, 2025 04:36
@netlify
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit f55a1e5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68a37e24e632880008b3e645
😎 Deploy Preview https://deploy-preview-16215--authentik-docs.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.

@netlify
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit f55a1e5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68a37e24a5372c00077c87d3

@netlify
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit f55a1e5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68a37e249cf7670008331b63

@codecov
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.77%. Comparing base (1c36b36) to head (f55a1e5).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16215      +/-   ##
==========================================
- Coverage   92.77%   92.77%   -0.01%     
==========================================
  Files         837      837              
  Lines       45244    45244              
==========================================
- Hits        41975    41973       -2     
- Misses       3269     3271       +2     
Flag Coverage Δ
e2e 46.69% <ø> (+0.07%) ⬆️
integration 23.49% <ø> (-0.06%) ⬇️
unit 90.92% <ø> (+<0.01%) ⬆️

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

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

@dominic-r
Copy link
Member Author

cc @rissson

@dominic-r dominic-r force-pushed the sdko/fix-ak-createsuperuser branch from b9d3603 to f55a1e5 Compare August 18, 2025 19:25
@dominic-r dominic-r requested a review from rissson August 18, 2025 19:25
@dominic-r dominic-r changed the title core: Fix exception on createsuperuser core: Block usage of Django's createsuperuser Aug 18, 2025
@BeryJu BeryJu merged commit 5aef86c into goauthentik:main Aug 19, 2025
105 checks passed
@dominic-r dominic-r deleted the sdko/fix-ak-createsuperuser branch August 19, 2025 13:33
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.

AK Create Super User Throws Error

3 participants