aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
commit904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8 (patch)
tree9742797de4279285a5ec72d8c7adbb05292cf088 /servo/views
parentead9662f6c3a0dfa77bf64c92c215f3e8367f902 (diff)
downloadServo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.gz
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.bz2
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.zip
Fix deprecation warnings in urlconfs
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/views/admin.py b/servo/views/admin.py
index f617c41..4f1d568 100644
--- a/servo/views/admin.py
+++ b/servo/views/admin.py
@@ -64,7 +64,7 @@ def edit_gsx_account(request, pk=None):
act.test()
messages.success(request, _(u'%s saved') % act.title)
return redirect(list_gsx_accounts)
- except gsxws.GsxError, e:
+ except gsxws.GsxError as e:
messages.warning(request, e)
except IntegrityError:
transaction.rollback()
@@ -506,7 +506,7 @@ def edit_user(request, pk=None):
messages.error(request, _("Error in user profile data"))
object_list = User.objects.filter(is_visible=True)
-
+
if request.GET.get('l'):
object_list = object_list.filter(locations__pk=request.GET['l'])