Loading tests/basic/models.py +2 −0 Original line number Diff line number Diff line Loading @@ -32,4 +32,6 @@ class SelfRef(models.Model): related_name='+') def __str__(self): # This method intentionally doesn't work for all cases - part # of the test for ticket #20278 return SelfRef.objects.get(selfref=self).pk Loading
tests/basic/models.py +2 −0 Original line number Diff line number Diff line Loading @@ -32,4 +32,6 @@ class SelfRef(models.Model): related_name='+') def __str__(self): # This method intentionally doesn't work for all cases - part # of the test for ticket #20278 return SelfRef.objects.get(selfref=self).pk