summaryrefslogtreecommitdiff
path: root/workshop_app
diff options
context:
space:
mode:
authorankitjavalkar2019-11-11 17:25:56 +0530
committerGitHub2019-11-11 17:25:56 +0530
commitb348ac579b50ad7b83b020ef213454ca1469538b (patch)
tree0b032ce0a365a1af0ac5a4a5c0a90c1b9c3e87c5 /workshop_app
parent0e9cfea9d3c631b8eb1a77e1123f0d021f6ca63a (diff)
parenta339bf20591db9fb886402d8f9edbd9d6d151778 (diff)
downloadworkshop_booking-b348ac579b50ad7b83b020ef213454ca1469538b.tar.gz
workshop_booking-b348ac579b50ad7b83b020ef213454ca1469538b.tar.bz2
workshop_booking-b348ac579b50ad7b83b020ef213454ca1469538b.zip
Merge pull request #107 from CruiseDevice/fix_proposed_wrkshp_pending_reference_error
Fixes #106 #105
Diffstat (limited to 'workshop_app')
-rw-r--r--workshop_app/views.py45
1 files changed, 24 insertions, 21 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py
index 1a9b7a7..def8665 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -1,3 +1,26 @@
+from textwrap import dedent
+from os import listdir, path, sep
+from zipfile import ZipFile
+import datetime as dt
+import csv
+import logging
+try:
+ from StringIO import StringIO as string_io
+except ImportError:
+ from io import BytesIO as string_io
+from datetime import datetime, date
+from itertools import chain
+
+from django.contrib.auth import login, logout, authenticate
+from django.contrib.auth.decorators import login_required
+from django.contrib import messages
+from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
+from django.shortcuts import render, redirect
+from django.utils import timezone
+from django.http import HttpResponse, HttpResponseRedirect
+from django.conf import settings
+from django.contrib import messages
+
from .forms import (
UserRegistrationForm, UserLoginForm,
ProfileForm, CreateWorkshop,
@@ -11,27 +34,7 @@ from .models import (
Testimonial, ProfileComments, Banner
)
from teams.models import Team
-from datetime import datetime, date
-from django.contrib.auth import login, logout, authenticate
-from django.contrib.auth.decorators import login_required
-from django.contrib import messages
-from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
-from django.shortcuts import render, redirect
-from django.utils import timezone
from .send_mails import send_email
-from django.http import HttpResponse, HttpResponseRedirect
-from textwrap import dedent
-from django.conf import settings
-from os import listdir, path, sep
-from zipfile import ZipFile
-from django.contrib import messages
-import datetime as dt
-import csv
-import logging
-try:
- from StringIO import StringIO as string_io
-except ImportError:
- from io import BytesIO as string_io
__author__ = "Akshen Doke"
__credits__ = ["Mahesh Gudi", "Aditya P.", "Ankit Javalkar",
@@ -706,7 +709,7 @@ def my_workshops(request):
proposed_workshop_coordinator=user.id
).order_by('-proposed_workshop_date')
- workshops = list(workshop_occurence_list) + list(proposed_workshop) + list(proposed_workshop_pending)
+ workshops = list(workshop_occurence_list) + list(proposed_workshop)
return render(request, 'workshop_app/my_workshops.html',
{"workshops": workshops})