Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Add string representation to MoloSurveyPageView
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmuller committed Feb 20, 2018
1 parent 1f1591c commit d782bb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions molo/surveys/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ class MoloSurveyPageView(models.Model):
null=True,
)

def __str__(self):
return '{0} viewed {1} at {2}'.format(
self.user, self.page, self.visited_at)


class SurveyTermsConditions(Orderable):
page = ParentalKey(MoloSurveyPage, related_name='terms_and_conditions')
Expand Down

0 comments on commit d782bb0

Please sign in to comment.