Commit d60b2192 authored by Davve's avatar Davve

运营创建用户名唯一

parent d6c75abe
...@@ -55,12 +55,10 @@ class AccountUpdateOrCreateView(APIView): ...@@ -55,12 +55,10 @@ class AccountUpdateOrCreateView(APIView):
'is_staff': True, 'is_staff': True,
} }
try: 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: except Exception as e:
raise e raise e
return { return data
'message': '创建成功'
}
class LoginView(APIView): 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