aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-06-17 20:49:00 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-06-17 20:49:00 +0300
commit3418ece690ca90d676a7d8ae654da7770ae312fb (patch)
tree5daa04838cda0e85da32865fde42b14f310a2627 /servo/views
parent3421b809f432ee49586df91b627ef70aa3e07cbf (diff)
downloadServo-3418ece690ca90d676a7d8ae654da7770ae312fb.tar.gz
Servo-3418ece690ca90d676a7d8ae654da7770ae312fb.tar.bz2
Servo-3418ece690ca90d676a7d8ae654da7770ae312fb.zip
Add print options for tech nameHEADmaster
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)