Commit d60b2192 authored by Davve's avatar Davve

运营创建用户名唯一

parent d6c75abe
......@@ -55,12 +55,10 @@ class AccountUpdateOrCreateView(APIView):
'is_staff': True,
}
try:
self.rpc['venus/sun/account/edit'](id=id, data=data).unwrap()
data = self.rpc['venus/sun/account/edit'](id=id, data=data).unwrap()
except Exception as e:
raise e
return {
'message': '创建成功'
}
return data
class LoginView(APIView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment