Skip to content
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

Fix error 400 when exporting backup #320

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

nas-tabchiche
Copy link
Contributor

This fixes the error 400 when attempting to export a backup.

The issue was due to dump_db_view being a function-based view, and thus not inheriting settings.DEFAULT_AUTHENTICATION_CLASSES, therefore assuming the authentication is session-based while it is in fact token-based.

This fixes the error 400 when attempting to export a backup.

The issue was due to dump_db_view being a function-based view,
and thus not inheriting `settings.DEFAULT_AUTHENTICATION_CLASSES`,
therefore assuming the authentication is session-based while it is
in fact token-based.
Copy link
Collaborator

@Mohamed-Hacene Mohamed-Hacene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0k

@Mohamed-Hacene Mohamed-Hacene merged commit 7a61562 into main Apr 24, 2024
11 checks passed
@Mohamed-Hacene Mohamed-Hacene deleted the hotfix/error-400-on-backup-export branch April 24, 2024 15:26
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants