From 09e40b9968d2841e9e0c24545308a1523641f9d2 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 24 Nov 2016 11:02:19 +0100 Subject: [PATCH] Fixing sample data to make the comments consistent --- taiga/projects/management/commands/sample_data.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/taiga/projects/management/commands/sample_data.py b/taiga/projects/management/commands/sample_data.py index e8b47290..cc502d0d 100644 --- a/taiga/projects/management/commands/sample_data.py +++ b/taiga/projects/management/commands/sample_data.py @@ -318,7 +318,6 @@ class Command(BaseCommand): attachment = self.create_attachment(wiki_page, i+1) take_snapshot(wiki_page, - comment=self.sd.paragraph(), user=wiki_page.owner) # Add history entry @@ -374,7 +373,6 @@ class Command(BaseCommand): bug.save() take_snapshot(bug, - comment=self.sd.paragraph(), user=bug.owner) # Add history entry @@ -421,7 +419,6 @@ class Command(BaseCommand): attachment = self.create_attachment(task, i+1) take_snapshot(task, - comment=self.sd.paragraph(), user=task.owner) # Add history entry @@ -476,7 +473,6 @@ class Command(BaseCommand): take_snapshot(us, - comment=self.sd.paragraph(), user=us.owner) # Add history entry @@ -533,7 +529,6 @@ class Command(BaseCommand): epic.save() take_snapshot(epic, - comment=self.sd.paragraph(), user=epic.owner) # Add history entry @@ -559,9 +554,15 @@ class Command(BaseCommand): # Add history entry take_snapshot(epic, - comment=self.sd.paragraph(), user=epic.owner) + # Add history entry + epic.status=self.sd.db_object_from_queryset(project.epic_statuses.filter(is_closed=False)) + epic.save() + take_snapshot(epic, + comment=self.sd.paragraph(), + user=epic.owner) + return epic def create_project(self, counter, is_private=None, blocked_code=None): @@ -633,4 +634,3 @@ class Command(BaseCommand): def generate_color(self, tag): color = sha1(tag.encode("utf-8")).hexdigest()[0:6] return "#{}".format(color) -