Revision 19eb3ee6 snf-astakos-app/astakos/im/models.py

b/snf-astakos-app/astakos/im/models.py
1325 1325
        except Project.DoesNotExist:
1326 1326
            return None
1327 1327

  
1328
    def deny(self):
1329
        if self.state != self.PENDING:
1330
            m = _("cannot deny: application '%s' in state '%s'") % (
1331
                    self.id, self.state)
1332
            raise AssertionError(m)
1333

  
1334
        self.state = self.DENIED
1335
        self.save()
1336

  
1328 1337
    def approve(self, approval_user=None):
1329 1338
        """
1330 1339
        If approval_user then during owner membership acceptance

Also available in: Unified diff