Commit cacc933e authored by Paul Pacheco's avatar Paul Pacheco

Make_password is now a staticmethod

parent b8dcff23
......@@ -28,7 +28,8 @@ import random
class Command(BaseCommand):
help = 'setups admin user with admin password (INSECURE!)'
def make_password(self, length):
@staticmethod
def make_password(length):
chars = string.ascii_letters + string.digits + '!@#$%^&*()'
random.seed = (os.urandom(1024))
return ''.join(random.choice(chars) for i in range(length))
......
Markdown is supported
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