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

15192 fix config revision if no revisions #15207

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

arthanson
Copy link
Collaborator

Fixes: #15192

Fixes two related cases when there are no current config revisions:

  1. If there are no config revisions and you go to http://localhost:8000/core/config/ it will error - that fix is in views.py to return the get_config().defaults.
  2. If you are viewing the now working current config page and choose to edit you will get another error on the edit form for 'NoneType' is not iterable. That is the fix in config.py

@arthanson arthanson marked this pull request as ready for review February 20, 2024 18:45
@jeremystretch jeremystretch merged commit 9b9afdc into develop Feb 20, 2024
8 checks passed
@jeremystretch jeremystretch deleted the 15192-fix-config-revision branch February 20, 2024 19:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 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.

TypeError at /core/config/
2 participants