Skip to content

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

Merged
lovelydinosaur merged 4 commits intomasterfrom
exclude-read-only-fields-from-unique-together-validation
Jun 13, 2016
Merged

Exclude read_only=True fields from unique_together validation & add docs.#4192
lovelydinosaur merged 4 commits intomasterfrom
exclude-read-only-fields-from-unique-together-validation

Conversation

@lovelydinosaur
Copy link
Copy Markdown
Contributor

@lovelydinosaur lovelydinosaur commented Jun 13, 2016

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

@lovelydinosaur lovelydinosaur added this to the 3.4.0 Release milestone Jun 13, 2016
@lovelydinosaur lovelydinosaur 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
@lovelydinosaur lovelydinosaur merged commit c3b7fba into master Jun 13, 2016
@lovelydinosaur lovelydinosaur deleted the exclude-read-only-fields-from-unique-together-validation branch June 13, 2016 12:31
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