[bootstrap user] remove syntax errors

This commit is contained in:
Nico Schottelius 2020-08-01 14:05:36 +02:00
parent 55ba61e36b
commit 011096f152

View file

@ -8,7 +8,7 @@ class Command(BaseCommand):
help = 'Bootstrap user (for testing)'
def add_arguments(self, parser):
parser.add_argument('username', type=str)
parser.add_argument('--username', type=str, required=True)
def handle(self, *args, **options):
user = get_user_model().objects.get(username=options['username'])
@ -35,6 +35,6 @@ class Command(BaseCommand):
# find any order that is associated to this bill
orders = Order.objects.filter(owner=user)
)
print(f"Addr: {addr}")
print(f"Bill: {bill}")