summaryrefslogtreecommitdiff
path: root/workshop_app/views.py
diff options
context:
space:
mode:
authorCruiseDevice2019-12-16 16:19:53 +0530
committerCruiseDevice2019-12-16 16:19:53 +0530
commit9c4cce24e617b7d952edc83d114c5c4361adb69a (patch)
treee8fb9f187bc541e920639e1cbe7f5fcf098e1c81 /workshop_app/views.py
parentb348ac579b50ad7b83b020ef213454ca1469538b (diff)
downloadworkshop_booking-9c4cce24e617b7d952edc83d114c5c4361adb69a.tar.gz
workshop_booking-9c4cce24e617b7d952edc83d114c5c4361adb69a.tar.bz2
workshop_booking-9c4cce24e617b7d952edc83d114c5c4361adb69a.zip
Fixes #108
Diffstat (limited to 'workshop_app/views.py')
-rw-r--r--workshop_app/views.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py
index def8665..3ebae9f 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -683,7 +683,6 @@ def my_workshops(request):
# team_members = list(set(user.profile.team_set.all().values_list('members', flat=True)))
teams = Team.objects.filter(members=user.profile)
- team_workshops = []
if teams:
team_members = Profile.objects.filter(team__in=teams).exclude(id=user.profile.id).distinct()
@@ -692,7 +691,6 @@ def my_workshops(request):
proposed_workshop_date__gte=today,
proposed_workshop_instructor_id__in=team_member_ids,
)
- print(team_workshops)
return render(request, 'workshop_app/my_workshops.html',
{ "workshops" :workshops,