From 71891b3040605103397ffa7fb349215eced3a2c3 Mon Sep 17 00:00:00 2001 From: Edan Binshtok Date: Sun, 19 Nov 2017 11:50:50 +0200 Subject: Pep8 another fixes Add more fixes to pep8 Issue-ID: VVP-25 Change-Id: Icc3bd3977ced2b537c858a9801e04a6bf6d1db05 Signed-off-by: Edan Binshtok --- iceci/admin.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'iceci/admin.py') diff --git a/iceci/admin.py b/iceci/admin.py index 21d8f3a..d9fac56 100644 --- a/iceci/admin.py +++ b/iceci/admin.py @@ -1,5 +1,5 @@ - -# ============LICENSE_START========================================== + +# ============LICENSE_START========================================== # org.onap.vvp/test-engine # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -47,7 +47,8 @@ def export_csv(modeladmin, request, queryset): from django.utils.encoding import smart_str from django.http import HttpResponse response = HttpResponse(content_type='text/csv') - response['Content-Disposition'] = 'attachment; filename=ci_Test_Results.csv' + response['Content-Disposition'] = \ + 'attachment; filename=ci_Test_Results.csv' writer = csv.writer(response, csv.excel) # BOM (optional...Excel needs it to open UTF-8 file properly) response.write(u'\ufeff'.encode('utf8')) @@ -113,8 +114,15 @@ def as_percentage_of(part, whole): @admin.register(TestResults) class TestResultsModelAdmin(admin.ModelAdmin): - list_display = ["testType", "testFeature", "testName", - "testResult", "notes", "duration", "build_id", "create_time"] + list_display = [ + "testType", + "testFeature", + "testName", + "testResult", + "notes", + "duration", + "build_id", + "create_time"] list_filter = ["testResult", "testType", "testFeature", "testName", "notes", "duration", "build_id", "create_time"] search_fields = ["testResult", "testType", "testFeature", "testName", -- cgit 1.2.3-korg