DT
YYYY-MM-DD-HH:mm
YYYY-MM-DD HH:mm
Size: a a a
DT
YYYY-MM-DD-HH:mm
YYYY-MM-DD HH:mm
I
username = serializers.CharField(source='user__username', readonly=True)
- так пробовал ?The serializer field might be named incorrectly and not match any attribute or key on the `User` instance.
Original exception text was: 'User' object has no attribute 'user__username'.
Z
YYYY-MM-DD HH:mm
DT
The serializer field might be named incorrectly and not match any attribute or key on the `User` instance.
Original exception text was: 'User' object has no attribute 'user__username'.
DT
I
V🤔
DT
V🤔
I
V🤔
V🤔
DT
I
username = serializers.CharField(source='user__username', readonly=True)
- так пробовал ?source='user.username'
DT
source='user.username'
I
V🤔
DT
DT
V🤔