diff options
author | pnshiralkar | 2020-04-29 12:08:27 +0530 |
---|---|---|
committer | pnshiralkar | 2020-04-29 12:08:27 +0530 |
commit | 619865129ae688f41a2d8fcf5a8f592e59c48a09 (patch) | |
tree | c18864a7ced9daf872084cdbb6403d52773b7cf6 /workshop_app/views.py | |
parent | 1c2d985348f11d35c915c193f8b514a0445b6723 (diff) | |
download | workshop_booking-619865129ae688f41a2d8fcf5a8f592e59c48a09.tar.gz workshop_booking-619865129ae688f41a2d8fcf5a8f592e59c48a09.tar.bz2 workshop_booking-619865129ae688f41a2d8fcf5a8f592e59c48a09.zip |
Refractor models done, modified some views and forms
Diffstat (limited to 'workshop_app/views.py')
-rw-r--r-- | workshop_app/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py index b2ce129..ac8fff3 100644 --- a/workshop_app/views.py +++ b/workshop_app/views.py @@ -445,7 +445,7 @@ def my_workshops(request): if action == 'accept' or action == 'approve': workshop_status = Workshop.objects.get(id=client_data.get('workshop_id')) # Change Status of the selected workshop - workshop_status.status = 'ACCEPTED' + workshop_status.status = 1 workshop_status.instructor = user workshop_status.save() ws = workshop_status @@ -455,7 +455,7 @@ def my_workshops(request): cnum = ws.coordinator.profile.phone_number cinstitute = ws.coordinator.profile.institute inum = request.user.profile.phone_number - wtitle = ws.title.name + wtitle = ws.workshop_type.name workshop_date = str(ws.date) # For Instructor @@ -512,7 +512,7 @@ def my_workshops(request): ).order_by('-date') proposed_workshop_pending = Workshop.objects.filter( - status='Pending' + status=0 ).order_by('-date') workshops = list(proposed_workshop) + list(proposed_workshop_pending) |