Revision e1017df9 snf-astakos-app/astakos/im/models.py
b/snf-astakos-app/astakos/im/models.py | ||
---|---|---|
1532 | 1532 |
conflicting_project = Project.objects.get(q) |
1533 | 1533 |
if (conflicting_project != project): |
1534 | 1534 |
m = (_("cannot approve: project with name '%s' " |
1535 |
"already exists (serial: %s)") % (
|
|
1535 |
"already exists (id: %s)") % (
|
|
1536 | 1536 |
new_project_name, conflicting_project.id)) |
1537 | 1537 |
raise PermissionDenied(m) # invalid argument |
1538 | 1538 |
except Project.DoesNotExist: |
... | ... | |
1686 | 1686 |
creation_date = models.DateTimeField(auto_now_add=True) |
1687 | 1687 |
name = models.CharField( |
1688 | 1688 |
max_length=80, |
1689 |
null=True, |
|
1689 | 1690 |
db_index=True, |
1690 | 1691 |
unique=True) |
1691 | 1692 |
|
... | ... | |
1767 | 1768 |
def terminate(self): |
1768 | 1769 |
self.deactivation_reason = 'TERMINATED' |
1769 | 1770 |
self.state = self.TERMINATED |
1771 |
self.name = None |
|
1770 | 1772 |
self.save() |
1771 | 1773 |
|
1772 | 1774 |
def suspend(self): |
Also available in: Unified diff