Skip to content

Commit c53d48f

Browse files
committed
Possibly fix an infinite recursion crash by avoid str() inside repr()
See https://code.djangoproject.com/ticket/33134
1 parent d779328 commit c53d48f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class TemplateReprForm(forms.Form):
66
user = forms.ModelChoiceField(queryset=User.objects.all())
77

88
def __repr__(self):
9-
return str(self)
9+
return repr(self)

0 commit comments

Comments
 (0)