Revision 64d0c13e snf-astakos-app/astakos/im/models.py

b/snf-astakos-app/astakos/im/models.py
1617 1617
    def can_approve(self):
1618 1618
        return self.state == self.PENDING
1619 1619

  
1620
    def approve(self):
1620
    def approve(self, reason):
1621 1621
        new_project_name = self.name
1622 1622
        if not self.can_approve():
1623 1623
            m = _("cannot approve: project '%s' in state '%s'") % (
......
1651 1651

  
1652 1652
        self.state = self.APPROVED
1653 1653
        self.response_date = now
1654
        self.response = reason
1654 1655
        self.save()
1655 1656
        return project
1656 1657

  

Also available in: Unified diff