I am getting and error when using Get or Post.
Code:

identification= serializers.SlugRelatedField(
        queryset=User_ID.objects.all(),
        slug_field='userid'
    )
class Meta:
        model = Transaction
        fields = '__all__'

Error:

encoders.py", line 50, in default
    return obj.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0:
invalid start byte

I am trying to use base64 but don't know how to implement it with
serializers.SlugRelatedField.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CADteO39pvY07GuU8T%3DPnpR7zq-Esp4GhCSj23kO8JavGLFiKgg%40mail.gmail.com.

Reply via email to