﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34445	DateField.input_formats cannot be printed	stefan6419846	David Sanders	"I am trying to display the input formats for `django.forms.fields.DateField`. This seems to fail at the moment when using `__str__`, while `__repr__` works.

Example code:

{{{
from django.forms.fields import DateField


print(repr(DateField().input_formats))
print(DateField().input_formats)
}}}

This will result in the following error:

{{{
Traceback (most recent call last):
  File ""<console>"", line 1, in <module>
TypeError: __str__ returned non-string (type list)
}}}

I would have expected the string representation to be available as well instead of failing with an internal Python error."	Bug	closed	Utilities	3.2	Normal	fixed			Ready for checkin	1	0	0	0	0	0
