From a339bf20591db9fb886402d8f9edbd9d6d151778 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Mon, 11 Nov 2019 16:55:39 +0530 Subject: Append list instead of Chaining - As @ankitjavalkar suggested, changing the chaining of lists to appending --- workshop_app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'workshop_app') diff --git a/workshop_app/views.py b/workshop_app/views.py index 808f197..def8665 100644 --- a/workshop_app/views.py +++ b/workshop_app/views.py @@ -709,7 +709,7 @@ def my_workshops(request): proposed_workshop_coordinator=user.id ).order_by('-proposed_workshop_date') - workshops = list(chain(workshop_occurence_list, proposed_workshop)) + workshops = list(workshop_occurence_list) + list(proposed_workshop) return render(request, 'workshop_app/my_workshops.html', {"workshops": workshops}) -- cgit