Skip to content
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

push serialzer metadata into field info for field. #3156

Closed
wants to merge 1 commit into from

Conversation

catskul
Copy link

@catskul catskul commented Jul 16, 2015

Check if field is a serializer and if it is, dump it's info into 'nested_object' field.

Refs #2915.

@@ -143,4 +143,7 @@ def get_field_info(self, field):
for choice_value, choice_name in field.choices.items()
]

if issubclass(type(field), serializers.Serializer):
field_info['nested_object'] = self.get_serializer_info(field)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable, but probably needs an associated example and test case.

@tomchristie tomchristie changed the title push serialzer metadata into field info for field re #2915 push serialzer metadata into field info for field. Jul 16, 2015
@tomchristie
Copy link
Member

(Aside: Moved the issue reference into the description - better for readability and interlinking that way)

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

Successfully merging this pull request may close these issues.

2 participants