Commits

Joel Crocker committed be04cbe

Added fix for repr problem involving a many to many field used in the m2m_signals doctests. This fix causes the representation of the field to be printed as is expected by the test.

Comments (0)

Files changed (1)

tests/modeltests/m2m_signals/models.py

 
 # alternative ways of setting relation:
 
->>> c1.default_parts.create(name='Windows')
+>>> print(c1.default_parts.create(name='Windows').__repr__())
 m2m_changed signal
 instance: VW
 action: add