diff options
Diffstat (limited to 'servo/views')
-rw-r--r-- | servo/views/checkin.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/servo/views/checkin.py b/servo/views/checkin.py index 0c83201..513625b 100644 --- a/servo/views/checkin.py +++ b/servo/views/checkin.py @@ -138,7 +138,7 @@ def init_session(request): if not request.session.get('company_name'): request.session['company_name'] = Configuration.conf('company_name') - if request.user.is_authenticated(): + if request.user.is_authenticated: # these are our fallback defaults user = request.user @@ -193,7 +193,7 @@ def thanks(request, order): def get_customer(request): """Return the selected customer data.""" - if not request.user.is_authenticated(): + if not request.user.is_authenticated: raise PermissionDenied if not request.GET.get('c'): @@ -267,13 +267,13 @@ def index(request): title = _('Service Order Check-In') dcat = request.GET.get('d', 'mac') dmap = { - 'mac': _('Mac'), - 'iphone': _('iPhone'), - 'ipad': _('iPad'), - 'ipod': _('iPod'), - 'acc': _('Apple Accessory'), - 'beats': _('Beats Products'), - 'other': _('Other Devices'), + 'mac' : _('Mac'), + 'iphone' : _('iPhone'), + 'ipad' : _('iPad'), + 'ipod' : _('iPod'), + 'acc' : _('Apple Accessory'), + 'beats' : _('Beats Products'), + 'other' : _('Other Devices'), } issue_form = forms.IssueForm() |