Commit a7172a3c authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Resume a deactivated project upon approval

When approving a modification, automatically set the project to active,
if it has been deactivated.
parent c78a9076
......@@ -1686,6 +1686,8 @@ class ProjectApplication(models.Model):
project.application = self
project.last_approval_date = now
project.save()
if project.is_deactivated():
project.resume()
return project
@property
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment