DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
AssertionError: Relational field must provide a `queryset` argument, override `get_queryset`, or set read_only=`True`
artist
=
serializers
.
PrimaryKeyRelatedField
(
many
=
True
,
queryset
=
User
.
objects
.
all
(
)
)
PREVIOUS
NEXT
Tagged:
#Relational
#field
#provide
#override
#set
ADD COMMENT
Topic
COMMENT
Name
5+8 =
Submit