修改 group_add bug

pull/6/head
ibuler 10 years ago
parent fac7fe3281
commit f524d2605a

@ -24,7 +24,7 @@ def group_add(request):
group = Group.objects.filter(name=group_name)
if group:
error = u'%s 已存在' % group_name
assert AddError
raise AddError
group = Group(name=group_name, comment=comment)
group.save()

@ -44,7 +44,7 @@
<div class="form-group">
<label for="j_comment" class="col-sm-2 control-label">备注</label>
<div class="col-sm-8">
<input id="j_comment" name="j_comment" placeholder="Comment" type="password" class="form-control">
<input id="j_comment" name="j_comment" placeholder="Comment" type="text" class="form-control">
</div>
</div>

Loading…
Cancel
Save