Skip to content

Commit

Permalink
Possibly fix an infinite recursion crash by avoid str() inside repr() (
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 28, 2021
1 parent d779328 commit 1a3caba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class TemplateReprForm(forms.Form):
user = forms.ModelChoiceField(queryset=User.objects.all())

def __repr__(self):
return str(self)
return repr(self)

0 comments on commit 1a3caba

Please sign in to comment.