]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Ensure UserProfile.user is configured
authorStephen Finucane <stephen@that.guru>
Sat, 3 Nov 2018 21:47:51 +0000 (21:47 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 22 Dec 2018 22:35:44 +0000 (22:35 +0000)
commit413bd043df90d22d38a01bc79b64d96e9dba5d3c
treec79a5acbd60ae56714872f386ae10480edc810ff
parent3a98b6b10ae87fd1804179537349037110706984
models: Ensure UserProfile.user is configured

Django Admin seems to be doing something funky with how it's handling
the creation of a User's corresponding UserProfile instance when
modelled as an inline field. Re-setting the UserProfile.user attribute
seems to resolve the issue, so do just that.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #110
(cherry picked from commit b1c2e80187008aff472c6509c67f44583cd3334c)
patchwork/models.py
releasenotes/notes/issue-110-a5bb3184bf831280.yaml [new file with mode: 0644]