aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/admin.py8
-rw-r--r--servo/views/checkin.py4
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)