Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
contributors.debian.org
Commits
b900ffac
Commit
b900ffac
authored
Aug 18, 2020
by
Enrico Zini
Browse files
Fixed object lookup
Signed-off-by:
Enrico Zini
<
enrico@enricozini.org
>
parent
e7b6d8cb
Pipeline
#166133
passed with stage
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
contributors/management/commands/usermerge.py
View file @
b900ffac
...
...
@@ -33,7 +33,7 @@ class Command(BaseCommand):
author
=
User
.
objects
.
get
(
username
=
author
)
dest
=
User
.
objects
.
get
(
username
=
into
)
src
=
[
User
.
objects
.
get
(
x
)
for
x
in
users
]
src
=
[
User
.
objects
.
get
(
username
=
x
)
for
x
in
users
]
if
dest
in
src
:
raise
CommandError
(
f
"Cannot merge User
{
src
}
into itself"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment