Minor fix on project creation.

remotes/origin/enhancement/email-actions
Andrey Antukh 2014-06-05 12:44:23 +02:00
parent 671cc0fcbc
commit 9c5c9bc094
1 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,10 @@ class Project(ProjectDefaults, models.Model):
# Get all available roles on this project
roles = self.get_roles().filter(computable=True)
# Do nothing if project does not have roles
if len(roles) == 0:
return
# Get point instance that represent a null/undefined
null_points_value = self.points.get(value=None)