Revision 73fbaec4 snf-astakos-app/astakos/im/migrations/0033_multiple_auth_providers.py
b/snf-astakos-app/astakos/im/migrations/0033_multiple_auth_providers.py | ||
---|---|---|
8 | 8 |
|
9 | 9 |
def forwards(self, orm): |
10 | 10 |
for user in orm.AstakosUser.objects.all(): |
11 |
if user.provider != 'local': |
|
11 |
if user.provider and user.provider != 'local':
|
|
12 | 12 |
orm.AstakosUserAuthProvider.objects.create(user=user, |
13 | 13 |
module=user.provider, |
14 | 14 |
identifier=user.third_party_identifier) |
Also available in: Unified diff