fix flake8 standard problems
This commit is contained in:
1 parent
3754fa2542
commit
d4b3a42f94
6 files changed
+6
-6
No files matched your search
@@ -36,7 +36,7 @@ class Command(BaseCommand):
|
||||
user = User.objects.get(username=username)
|
||||
user.set_password(password)
|
||||
user.save()
|
||||
self.stdout.write(self.style.SUCCESS(f"Password is rested"))
|
||||
self.stdout.write(self.style.SUCCESS("Password is rested"))
|
||||
except User.DoesNotExist:
|
||||
self.stdout.write(self.style.ERROR(f"User {username} doesnot exist, operation ignored"))
|
||||
exit(1)
|
||||
|
||||
Reference in new issue
Block a user