Skip to content

Conversation

ugurunver
Copy link

Description

I simply added serializers.ManyRelatedField to metadata field mapping. And I updated metadata test_read_only_primary_key_related_field test with "multiple choice", because the model field was children = models.ManyToManyField('Child')' and serializer field waschildren = serializers.PrimaryKeyRelatedField(read_only=True, many=True)` and it must be represented as multiple selectbox field on frontend, (so field type should be "multiple choice", and i guess you missed this because you are rendering data on backend in BrowsableApiRenderer and you didn't notice what we need on frontend)

@lovelydinosaur lovelydinosaur changed the title serializers.ManyRelatedField added to SimpleMetadata.label_lookup refs #4030 serializers.ManyRelatedField added to SimpleMetadata.label_lookup Jun 2, 2016
@lovelydinosaur
Copy link
Contributor

Refs #4030

@lovelydinosaur
Copy link
Contributor

Closing as per #4160.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants