mirror of
https://github.com/django/django.git
synced 2025-01-03 06:55:47 +00:00
parent
f450bc9f44
commit
01e8ac47b3
@ -117,6 +117,7 @@ class FunPerson(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "%s %s" % (self.first_name, self.last_name)
|
return "%s %s" % (self.first_name, self.last_name)
|
||||||
|
|
||||||
|
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class Book(models.Model):
|
class Book(models.Model):
|
||||||
title = models.CharField(max_length=50)
|
title = models.CharField(max_length=50)
|
||||||
|
@ -448,7 +448,6 @@ class CustomManagerTests(TestCase):
|
|||||||
)
|
)
|
||||||
self.b1.authors.add(droopy)
|
self.b1.authors.add(droopy)
|
||||||
|
|
||||||
|
|
||||||
# Check that the fun manager ONLY clears fun people.
|
# Check that the fun manager ONLY clears fun people.
|
||||||
self.b1.authors(manager='fun_people').clear()
|
self.b1.authors(manager='fun_people').clear()
|
||||||
self.assertQuerysetEqual(
|
self.assertQuerysetEqual(
|
||||||
|
Loading…
Reference in New Issue
Block a user