diff options
-rw-r--r-- | patchwork/models.py | 1 | ||||
-rw-r--r-- | releasenotes/notes/issue-110-a5bb3184bf831280.yaml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/patchwork/models.py b/patchwork/models.py index a483dc6..a7eee4d 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -194,6 +194,7 @@ class UserProfile(models.Model): def _user_saved_callback(sender, created, instance, **kwargs): try: profile = instance.profile + profile.user = instance except UserProfile.DoesNotExist: profile = UserProfile(user=instance) profile.save() diff --git a/releasenotes/notes/issue-110-a5bb3184bf831280.yaml b/releasenotes/notes/issue-110-a5bb3184bf831280.yaml new file mode 100644 index 0000000..16a0fa5 --- /dev/null +++ b/releasenotes/notes/issue-110-a5bb3184bf831280.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Assigning maintained projects when creating a new user in the admin page + was causing an error. This is now resolved. |