Revision 1873ca3b snf-astakos-app/astakos/im/migrations/0016_populate_group_data.py

b/snf-astakos-app/astakos/im/migrations/0016_populate_group_data.py
52 52
        map(_create_astakogroup, t)
53 53
        
54 54
        orphans = orm.AstakosUser.objects.annotate(num_groups=Count('astakos_groups')).filter(num_groups = 0)
55
        map ( lambda u: orm.Membership(group=groups['default'], person=u).save(), orphans )
55
        map ( lambda u: orm.Membership(group=groups['default'], person=u, date_joined=datetime.datetime.now()).save(), orphans )
56 56
        
57 57
    def backwards(self, orm):
58 58
        def _delete_groupkind(name):

Also available in: Unified diff