mirror of https://github.com/django/django.git
Fixed tests.queries.models.StaffUser.__str__().
This commit is contained in:
parent
df2d2bc95c
commit
e17ab0af91
|
@ -636,7 +636,7 @@ class StaffUser(BaseUser):
|
|||
staff = models.OneToOneField(Staff, models.CASCADE, related_name='user')
|
||||
|
||||
def __str__(self):
|
||||
return self.staff
|
||||
return str(self.staff)
|
||||
|
||||
|
||||
class Ticket21203Parent(models.Model):
|
||||
|
|
Loading…
Reference in New Issue