Adding str representation anyway.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-10 18:46:54 +02:00
parent effe016b57
commit b864a2cd56

View file

@ -20,3 +20,11 @@ class Ride(UUIDModel, CampRelatedModel):
'camp_slug': self.camp.slug
}
)
def __str__(self):
return "{} seats from {} at {} by {}".format(
self.seats,
self.location,
self.when,
self.user
)