Revision 3e470a3a snf-astakos-app/astakos/im/management/commands/modifyuser.py
b/snf-astakos-app/astakos/im/management/commands/modifyuser.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
args = "<user_id or email>"
|
|
42 |
args = "<user ID or email>"
|
|
43 | 43 |
help = "Modify a user's attributes" |
44 | 44 |
|
45 | 45 |
option_list = BaseCommand.option_list + ( |
... | ... | |
80 | 80 |
|
81 | 81 |
def handle(self, *args, **options): |
82 | 82 |
if len(args) != 1: |
83 |
raise CommandError("Please provide a user_id or email")
|
|
83 |
raise CommandError("Please provide a user ID or email")
|
|
84 | 84 |
|
85 | 85 |
user = get_user(args[0]) |
86 | 86 |
if not user: |
Also available in: Unified diff