Skip to content

Commit

Permalink
fixing recursion error as a result of __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Newman committed Aug 30, 2016
1 parent d27d197 commit 12b2d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formly/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def get_absolute_url(self):
return reverse("survey_edit", kwargs={"pk": self.pk, "page": 1})

def __str__(self):
return self.__repr__()
return self.survey.name


@python_2_unicode_compatible
Expand Down

0 comments on commit 12b2d27

Please sign in to comment.