Skip to content

serializers.ManyRelatedField added to SimpleMetadata.label_lookup #4031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

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)

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

Refs #4030

@tomchristie
Copy link
Member

Closing as per #4160.

@tomchristie tomchristie closed this Jun 2, 2016
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