Skip to content

Conversation

francoisfreitag
Copy link
Contributor

Re-opened ticket: https://code.djangoproject.com/ticket/27118#comment:4

The pk property should be ignored when validating get_or_create / update_or_create field names. The patch feels a bit hacky but I do not see a cleaner way to ignore the property.

@timgraham
Copy link
Member

merged in 1db1f74, thanks!

@timgraham timgraham closed this Oct 4, 2016
@timgraham timgraham changed the title Fixed #27118 -- Allowed using pk as a field for get_or_create and update_or_create. Refs #27118 -- Reallowed using pk as a field for get_or_create and update_or_create. Oct 4, 2016
@francoisfreitag francoisfreitag deleted the 27118/pk_regression branch October 9, 2016 22:24
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