Skip to content

Include 'initial' attribute of serializer fields in metadata responses #3750

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

Ernest0x
Copy link
Contributor

Frontend applications may now use the response of an OPTIONS request so as to populate the fields for "add/new/create" type of forms with initial values based on the 'initial' attribute of the serializer's fields.

Frontend applications may now use the response of an OPTIONS request so as to populate the fields for "add/new/create" type of forms with initial values based on the 'initial' attribute of the serializer's fields.
@tomchristie
Copy link
Member

Not sure if we want this or not, but note that associated tests would also need to be fixed up.

Also extended current test to also check against a field with its
'initial' argument set to 'initial value'.
@Ernest0x
Copy link
Contributor Author

@tomchristie I fixed the associated tests

@tomchristie
Copy link
Member

Closing as per #3773

@tomchristie tomchristie closed this Feb 4, 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