summaryrefslogtreecommitdiff
path: root/workshop_app/models.py
diff options
context:
space:
mode:
authorAkshen2017-07-26 14:23:08 +0530
committerAkshen2017-07-26 14:23:08 +0530
commite59227adeba86ddce5ac0d7e245a5f8dd088c2b2 (patch)
treee7d424834f5048e103b9d2b4b9156b6612e9c355 /workshop_app/models.py
parent91244eefb0fd0b7e30914cc5e06f890d58874d84 (diff)
downloadworkshop_booking-e59227adeba86ddce5ac0d7e245a5f8dd088c2b2.tar.gz
workshop_booking-e59227adeba86ddce5ac0d7e245a5f8dd088c2b2.tar.bz2
workshop_booking-e59227adeba86ddce5ac0d7e245a5f8dd088c2b2.zip
Updates Admin Interface
- Headers in Tables - Download data in csv format from Table
Diffstat (limited to 'workshop_app/models.py')
-rw-r--r--workshop_app/models.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/workshop_app/models.py b/workshop_app/models.py
index 41a249e..b3ca1fc 100644
--- a/workshop_app/models.py
+++ b/workshop_app/models.py
@@ -129,10 +129,11 @@ class RequestedWorkshop(models.Model):
)
def __str__(self):
- return u"{0} | {1} | {2}".format(
+ return u"{0} | {1} | {2}| {3}".format(
self.requested_workshop_date,
self.requested_workshop_title,
self.requested_workshop_coordinator,
+ self.status
)
class ProposeWorkshopDate(models.Model):
@@ -167,10 +168,11 @@ class ProposeWorkshopDate(models.Model):
)
def __str__(self):
- return u"{0} | {1} | {2}".format(
+ return u"{0} | {1} | {2}| {3}".format(
self.proposed_workshop_date,
self.proposed_workshop_title,
self.proposed_workshop_coordinator,
+ self.status
)
@@ -185,8 +187,7 @@ class BookedWorkshop(models.Model):
def __str__(self):
return u"{0} | {1} |".format(
self.booked_workshop_requested,
- self.booked_workshop_proposed,
-
+ self.booked_workshop_proposed
)
class Testimonial(models.Model):