sampledata command: assigned to a random user all not new issues

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-11-12 19:02:15 +01:00
parent 246726ab21
commit 402f6c6e31
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ class Command(BaseCommand):
for i in range(self.sd.int(0, 4)):
attachment = self.create_attachment(bug)
if bug.status.order != 1:
bug.assigned_to = self.sd.db_object_from_queryset(project.memberships.all()).user
bug.save()
return bug
def create_task(self, project, milestone, us, min_date, max_date, closed=False):