Changed target_datetime fieldtype to be CharField to more easily follow project specifications

parent 173e6f1e
......@@ -14,10 +14,10 @@ class Location(models.Model):
venue = models.TextField()
def __str__(self):
return '{} \n {}'.format(self.venue, self.mode)
return '{}, {}'.format(self.mode, self.venue)
class Event(models.Model):
target_datetime = models.DateTimeField()
target_datetime = models.CharField(max_length=50)
activity = models.TextField(max_length=300)
estimated_hours = models.FloatField()
location = models.ForeignKey(Location, on_delete=models.CASCADE)
......
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