Commit ed904e99 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

changed the venue attribute in models.py to be a textfield instead of charfield

parent d7d7270a
......@@ -10,14 +10,11 @@ location_choices = [
class Location(models.Model):
mode = models.CharField(max_length=50, choices = location_choices, default = 'onsite')
venue = models.CharField(max_length=50)
venue = models.TextField(max_length=50)
def __str__(self):
mode_venue=(
'Mode: '+self.mode<br>'Venue: '+self.venue
)
return mode_venue
return self.venue
class Event(models.Model):
......@@ -29,12 +26,4 @@ class Event(models.Model):
def __str__(self):
event_details=(
'Date and Time: '+self.target_datetime<br>
'Activity: '+self.activity<br>
'Estimated Hours: '+self.estimated_hours<br>
'Course: '+self.course<br>
self.location
)
return event_details
\ No newline at end of file
return self.activity
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment