From f3514583270b467b16126f718d21f688532b68d2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 3 Feb 2016 20:20:31 -0500 Subject: fixed a bug in builder --- app/builder/base.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app/builder') diff --git a/app/builder/base.py b/app/builder/base.py index a26a857..6dd32e2 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -315,10 +315,9 @@ class BuildProjects(Build): def get_projects(self): all_proj = [] - projects = apps.get_model('projects', 'Project').objects.get(pk=2) - for proj in projects: - row = {'slug': proj.slug, 'name': proj.model_name} - all_proj.append(row) + proj = apps.get_model('projects', 'Project').objects.get(pk=2) + row = {'slug': proj.slug, 'name': proj.model_name} + all_proj.append(row) return all_proj def build_project_archive(self): -- cgit v1.2.3-70-g09d2