django/django — pull request #3793 by coldmind (2014-12-26 22:19:40+00:00)
Title: Fixed #22728 - Prohibited lookups usage for get_or_create

Patch proposes how this problem can be solved.
I decided to make this backwards incompatible, because the way django does it now should not be encouraged.

One more thing - ticket is about `get_or_create`, but I think `update_or_create` should have the same behavior.