Revision c7c0ec58 snf-astakos-app/astakos/im/management/commands/user-show.py
b/snf-astakos-app/astakos/im/management/commands/user-show.py | ||
---|---|---|
71 | 71 |
for resource, limits in quotas.iteritems(): |
72 | 72 |
showable_quotas[resource] = limits.capacity |
73 | 73 |
|
74 |
settings_dict = {} |
|
75 |
settings = user.settings() |
|
76 |
for setting in settings: |
|
77 |
settings_dict[setting.setting] = setting.value |
|
78 |
|
|
74 | 79 |
kv = OrderedDict( |
75 | 80 |
[ |
76 | 81 |
('id', user.id), |
... | ... | |
97 | 102 |
('email_verified', user.email_verified), |
98 | 103 |
('username', user.username), |
99 | 104 |
('activation_sent_date', user.activation_sent), |
100 |
('resources', showable_quotas), |
|
101 | 105 |
]) |
102 | 106 |
|
107 |
if settings_dict: |
|
108 |
kv['settings'] = settings_dict |
|
109 |
|
|
110 |
kv['resources'] = showable_quotas |
|
111 |
|
|
103 | 112 |
if get_latest_terms(): |
104 | 113 |
has_signed_terms = user.signed_terms |
105 | 114 |
kv['has_signed_terms'] = has_signed_terms |
Also available in: Unified diff