Revision 3848b521 snf-astakos-app/astakos/im/management/commands/quota.py
b/snf-astakos-app/astakos/im/management/commands/quota.py | ||
---|---|---|
113 | 113 |
if user_ident is not None: |
114 | 114 |
users = [self.get_user(user_ident)] |
115 | 115 |
else: |
116 |
users = AstakosUser.objects.moderated()
|
|
116 |
users = AstakosUser.objects.accepted()
|
|
117 | 117 |
|
118 | 118 |
if list_only: |
119 | 119 |
qh_quotas, astakos_i = list_user_quotas(users) |
... | ... | |
150 | 150 |
else: |
151 | 151 |
raise CommandError('Please specify user by uuid or email') |
152 | 152 |
|
153 |
if not user.moderated:
|
|
154 |
raise CommandError('%s is not an accepted user.\n' % user.uuid)
|
|
153 |
if not user.is_accepted():
|
|
154 |
raise CommandError('%s is not an accepted user.' % user.uuid) |
|
155 | 155 |
|
156 | 156 |
return user |
157 | 157 |
|
Also available in: Unified diff