diff options
author | CruiseDevice | 2019-11-11 16:55:39 +0530 |
---|---|---|
committer | CruiseDevice | 2019-11-11 16:55:39 +0530 |
commit | a339bf20591db9fb886402d8f9edbd9d6d151778 (patch) | |
tree | 0b032ce0a365a1af0ac5a4a5c0a90c1b9c3e87c5 /workshop_app | |
parent | 7bc4033dd41c7d8f7779bc0a26ebf3069eda1d34 (diff) | |
download | workshop_booking-a339bf20591db9fb886402d8f9edbd9d6d151778.tar.gz workshop_booking-a339bf20591db9fb886402d8f9edbd9d6d151778.tar.bz2 workshop_booking-a339bf20591db9fb886402d8f9edbd9d6d151778.zip |
Append list instead of Chaining
- As @ankitjavalkar suggested, changing the chaining of lists to
appending
Diffstat (limited to 'workshop_app')
-rw-r--r-- | workshop_app/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |