Revision 357987bc

b/snf-astakos-app/astakos/im/models.py
234 234
    @transaction.commit_manually
235 235
    def approve_member(self, person):
236 236
        m, created = self.membership_set.get_or_create(person=person)
237
        # update date_joined in any case
237
	# update date_joined in any case
238 238
        try:
239
            m.approve()
239
	    m.approve()
240 240
        except:
241 241
            transaction.rollback()
242 242
            raise
......
571 571
        return False
572 572

  
573 573
    def approve(self):
574
    	if self.is_approved:
575
		return
574 576
        if self.group.max_participants:
575 577
            assert len(self.group.approved_members) + 1 <= self.group.max_participants, \
576 578
	    	'Maximum participant number has been reached.'

Also available in: Unified diff