Commit 704d6ee6 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

fix activateuser command

parent 6070409b
......@@ -32,6 +32,7 @@
# or implied, of GRNET S.A.
from import BaseCommand, CommandError
from django.db import transaction
from import activate
......@@ -42,6 +43,7 @@ class Command(BaseCommand):
args = "<user id or email> [user id or email] ..."
help = "Activates one or more users"
def handle(self, *args, **options):
if not args:
raise CommandError("No user was given")
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