Fix sample_data command

remotes/origin/logger
David Barragán Merino 2015-11-18 16:56:32 +01:00
parent 49bf85c498
commit 8c3b3d640f
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ from taiga.permissions.permissions import ANON_PERMISSIONS
from taiga.projects.models import *
from taiga.projects.milestones.models import *
from taiga.projects.notifications.choices import NotifyLevel
from taiga.projects.services.stats import get_stats_for_project
from taiga.projects.userstories.models import *
from taiga.projects.tasks.models import *
@ -220,8 +221,8 @@ class Command(BaseCommand):
wiki_page = self.create_wiki(project, "home")
# Set a value to total_story_points to show the deadline in the backlog
defined_points = sum(project.defined_points.values())
project.total_story_points = int(defined_points * self.sd.int(5,12) / 10)
get_stats_for_project(project)
project.total_story_points = int(project._defined_points * self.sd.int(5,12) / 10)
project.save()
self.create_likes(project)