Commit b900ffac authored by Enrico Zini's avatar Enrico Zini
Browse files

Fixed object lookup



Signed-off-by: default avatarEnrico Zini <enrico@enricozini.org>
parent e7b6d8cb
Pipeline #166133 passed with stage
in 1 minute and 53 seconds
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment