Revision f9aea9c8 snf-astakos-app/astakos/im/models.py
b/snf-astakos-app/astakos/im/models.py | ||
---|---|---|
1061 | 1061 |
set_default_group(instance) |
1062 | 1062 |
# TODO handle socket.error & IOError |
1063 | 1063 |
register_users((instance,)) |
1064 |
instance.renew_token() |
|
1065 | 1064 |
|
1066 | 1065 |
|
1067 | 1066 |
def resource_post_save(sender, instance, created, **kwargs): |
... | ... | |
1096 | 1095 |
send_quota(users) |
1097 | 1096 |
|
1098 | 1097 |
def renew_token(sender, instance, **kwargs): |
1099 |
if not instance.id:
|
|
1098 |
if not instance.auth_token:
|
|
1100 | 1099 |
instance.renew_token() |
1101 | 1100 |
|
1102 | 1101 |
post_syncdb.connect(fix_superusers) |
Also available in: Unified diff