From e03de182f3a3e077a19b2421b8a437b17c9d84e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 16 Aug 2016 17:46:23 +0200 Subject: [PATCH] Fix an entrophy ploblem with custom attributes for epics in sample data --- taiga/projects/management/commands/sample_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga/projects/management/commands/sample_data.py b/taiga/projects/management/commands/sample_data.py index b659096a..9a4d2b22 100644 --- a/taiga/projects/management/commands/sample_data.py +++ b/taiga/projects/management/commands/sample_data.py @@ -521,7 +521,7 @@ class Command(BaseCommand): epic.save() custom_attributes_values = {str(ca.id): self.get_custom_attributes_value(ca.type) for ca - in project.epiccustomattributes.all() if self.sd.boolean()} + in project.epiccustomattributes.all().order_by("id") if self.sd.boolean()} if custom_attributes_values: epic.custom_attributes_values.attributes_values = custom_attributes_values epic.custom_attributes_values.save()