You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to serialize APIRequestLog when i try to create a serialize only user.id is returning:
Here is my class:
class ApiRequestTableSerializer(serializers.Serializer):
requested_at = serializers.DateTimeField(format='%d %b %Y')
path = serializers.CharField(source="get_path", read_only=True)
class Meta:
model = APIRequestLog
fields = ['id', 'requested_at', 'response_ms', 'status_code', 'method','user'
'path', 'remote_addr', 'host',
'query_params']
The text was updated successfully, but these errors were encountered:
It is possible to serialize APIRequestLog when i try to create a serialize only user.id is returning:
Here is my class:
class ApiRequestTableSerializer(serializers.Serializer):
requested_at = serializers.DateTimeField(format='%d %b %Y')
path = serializers.CharField(source="get_path", read_only=True)
The text was updated successfully, but these errors were encountered: