-
Notifications
You must be signed in to change notification settings - Fork 79
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 APT_BY_HASH setting #985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I 100% understand why the duplicate/separate import would cause it to not work, but it is certainly cleaner with these changes, and I have full faith that you tested both versions so I am going to approve this.
Backporting only to 3.1, since that is the release that adds this feature. |
The existing code imports the setting directly from the file which means that it’s always False. This changes it so that it uses django.conf.setting object which allows settings to be overridden by the user. https://docs.djangoproject.com/en/5.0/topics/settings/#using-settings-in-python-code |
Backport to 3.1: 💚 backport PR created✅ Backport PR branch: Backported as #987 🤖 @patchback |
Fix APT_BY_HASH setting (cherry picked from commit dd67d7e)
…e213ed703683edf1b4b337cb9b17a/pr-985 [PR #985/dd67d7e6 backport][3.1] Fix APT_BY_HASH setting
fixes #984