pull/2/head
ibuler 10 years ago
parent 532cefe338
commit f947a753db

@ -20,9 +20,9 @@ urlpatterns = patterns('',
(r'^showGroup/$', views.showGroup), (r'^showGroup/$', views.showGroup),
(r'^addGroup/$', views.addGroup), (r'^addGroup/$', views.addGroup),
(r'^chgGroup/$', views.chgGroup), (r'^chgGroup/$', views.chgGroup),
(r'^showIDC/$', views.showGroup), (r'^showIDC/$', views.showIDC),
(r'^addIDC/$', views.addGroup), (r'^addIDC/$', views.addIDC),
(r'^chgIDC/$', views.chgGroup), (r'^chgIDC/$', views.chgIDC),
(r'^showSudo/$', views.showSudo), (r'^showSudo/$', views.showSudo),
(r'^chgSudo/$', views.chgSudo), (r'^chgSudo/$', views.chgSudo),
(r'^showAssets/$', views.showAssets), (r'^showAssets/$', views.showAssets),

@ -596,7 +596,7 @@ def chgGroup(request):
error = '' error = ''
msg = '' msg = ''
if request.method == 'GET': if request.method == 'GET':
group_id = request.GET.filter('id', None) group_id = request.GET.get('id', None)
if group_id: if group_id:
group = Group.objects.get(id=group_id) group = Group.objects.get(id=group_id)
else: else:

Loading…
Cancel
Save