Resolved bugs in Calendar app models

parent a7f56903
......@@ -26,4 +26,8 @@ class Event(models.Model):
course = models.CharField(max_length=255, default='')
def __str__(self):
return '{}'.format(self.activity)
return '{} on {} at {}'.format(
self.activity,
self.target_datetime.strftime("%m/%d/%y"),
self.target_datetime.strftime("%I:%M %p"),
)
\ 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