]> 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 17:56:11 +0000 (17:56 +0000)
commitb1c2e80187008aff472c6509c67f44583cd3334c
tree54e8cde6d44f37206a62ca0487c737a288487ee1
parent08d1459a4a400083c92f8d7cf7738899b560bdf0
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
patchwork/models.py
releasenotes/notes/issue-110-a5bb3184bf831280.yaml [new file with mode: 0644]