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

Exclude read_only=True fields from unique_together validation & add docs. #4192

Merged

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Jun 13, 2016

Closes #2848
Docs update closes #2996
Docs update closes #3970

@tomchristie tomchristie added this to the 3.4.0 Release milestone Jun 13, 2016
@tomchristie tomchristie changed the title Exclude read_only=True fields from unique_together validation Exclude read_only=True fields from unique_together validation & add docs. Jun 13, 2016
@tomchristie tomchristie merged commit c3b7fba into master Jun 13, 2016
2 checks passed
@tomchristie tomchristie deleted the exclude-read-only-fields-from-unique-together-validation branch Jun 13, 2016
punchagan added a commit to akvo/akvo-rsr that referenced this pull request Nov 15, 2017
unique_together constraint seems to make the fields that are a part of it
hidden, even when they are marked as read_only. This commit adds a work around,
to fix this bug. Using the patch from
encode/django-rest-framework#4192 didn't seem to work.
There are other changes, possibly, that cause this code to not work in the
version of DRF we are using.
punchagan added a commit to akvo/akvo-rsr that referenced this pull request Nov 16, 2017
unique_together constraint seems to make the fields that are a part of it
hidden, even when they are marked as read_only. This commit adds a work around,
to fix this bug. Using the patch from
encode/django-rest-framework#4192 didn't seem to work.
There are other changes, possibly, that cause this code to not work in the
version of DRF we are using.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant