Revision 591068ae snf-astakos-app/astakos/im/auth_providers.py

b/snf-astakos-app/astakos/im/auth_providers.py
64 64
            if type_id:
65 65
                include = True
66 66
            if type_id in astakos_settings.IM_MODULES:
67
                if astakos_settings.IM_MODULES.index(type_id) == 0:
68
                    dct['is_primary'] = True
67 69
                dct['module_enabled'] = True
68 70

  
69 71
        newcls = super(AuthProviderBase, cls).__new__(cls, name, bases, dct)
......
80 82

  
81 83
    module = None
82 84
    module_enabled = False
85
    is_primary = False
83 86

  
84 87
    message_tpls = OrderedDict((
85 88
        ('title', '{module_title}'),

Also available in: Unified diff