Заливка
This commit is contained in:
1 parent
e674cf39e8
commit
31914ad375
20 files changed
+62
-939
No files matched your search
@@ -15,7 +15,6 @@ class UserJSONRenderer(JSONRenderer):
|
||||
if token is not None and isinstance(token, bytes):
|
||||
# Как говорится выше, декодирует token если он имеет тип bytes.
|
||||
data['token'] = token.decode('utf-8')
|
||||
# print(data)
|
||||
# Наконец, мы можем отобразить наши данные в простанстве имен 'user'.
|
||||
return json.dumps({
|
||||
'user': data,
|
||||
|
||||
Reference in new issue
Block a user