-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Move settings to db #2581
base: master
Are you sure you want to change the base?
Move settings to db #2581
Conversation
fe14830
to
91965ca
Compare
Codecov Report
@@ Coverage Diff @@
## master #2581 +/- ##
==========================================
- Coverage 87.77% 87.65% -0.13%
==========================================
Files 894 903 +9
Lines 40414 40720 +306
Branches 5274 5304 +30
==========================================
+ Hits 35474 35693 +219
- Misses 3721 3805 +84
- Partials 1219 1222 +3
Continue to review full report at Codecov.
|
8106350
to
5ec1e6f
Compare
05c3243
to
e7c2069
Compare
f50ba79
to
65edb08
Compare
… SHUUP_REFERENCE_NUMBER_PREFIX to DB.
…_ENABLE_MULTIPLE_SHOPS, SHUUP_ENABLE_MULTIPLE_SUPPLIERS, SHUUP_MANAGE_CONTACTS_PER_SHOP, SHUUP_ALLOW_EDITING_ORDER.
…HUUP_ADMIN_ALLOW_HTML_IN_VENDOR_DESCRIPTION.
1ce96b0
to
a6dbdea
Compare
a6dbdea
to
baaa064
Compare
return True | ||
|
||
|
||
class BaseSettingsForm(forms.Form): | ||
title = None | ||
encrypted_fields = [] |
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.
We need to specify in each form which fields are encrypted.
|
||
|
||
def move_settings_to_db(apps, schema_editor): | ||
configuration.set(None, SHUUP_HOME_CURRENCY, getattr(settings, "SHUUP_HOME_CURRENCY", "EUR")) |
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.
I took the setting values from shuup.core.settings.
No description provided.