Заливка

This commit is contained in:
iriska-gri committed 2024-03-06 15:52:39 +03:00
1 parent e674cf39e8
commit 31914ad375
20 files changed
+62 -939

No files matched your search

-1
View File
@@ -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,