diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-06-17 20:49:00 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-06-17 20:49:00 +0300 |
commit | 3418ece690ca90d676a7d8ae654da7770ae312fb (patch) | |
tree | 5daa04838cda0e85da32865fde42b14f310a2627 /servo/views | |
parent | 3421b809f432ee49586df91b627ef70aa3e07cbf (diff) | |
download | Servo-3418ece690ca90d676a7d8ae654da7770ae312fb.tar.gz Servo-3418ece690ca90d676a7d8ae654da7770ae312fb.tar.bz2 Servo-3418ece690ca90d676a7d8ae654da7770ae312fb.zip |
Diffstat (limited to 'servo/views')
-rw-r--r-- | servo/views/admin.py | 8 | ||||
-rw-r--r-- | servo/views/checkin.py | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/servo/views/admin.py b/servo/views/admin.py index 5d1da4a..4f32829 100644 --- a/servo/views/admin.py +++ b/servo/views/admin.py @@ -224,14 +224,6 @@ def settings(request): p.set_exchange_sales_price() p.save() - # formset = ShippingMethodFormset(request.POST) - - # if not formset.is_valid(): - # messages.error(request, _('Error in shipping method settings')) - # return render(request, 'admin/settings.html', locals()) - - # formset.save() - messages.success(request, _('Settings saved')) return redirect(settings) diff --git a/servo/views/checkin.py b/servo/views/checkin.py index fc1719a..dd60bd2 100644 --- a/servo/views/checkin.py +++ b/servo/views/checkin.py @@ -57,7 +57,9 @@ def find_customer(request, phone): def init_locale(request): - """Initialize locale for the check-in interface.""" + """ + Initialize locale for the check-in interface. + """ lc = settings.INSTALL_LOCALE.split('.') locale.setlocale(locale.LC_TIME, lc) locale.setlocale(locale.LC_NUMERIC, lc) |