Fix test
This commit is contained in:
parent
a57d9a9303
commit
b4777f7f4f
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ class OnlyExcludeAllTest(unittest.TestCase):
|
|||
self.assertEqual(obj.name, person.name)
|
||||
self.assertEqual(obj.age, person.age)
|
||||
|
||||
obj = Person.objects.only(*('id', 'name',)).get()
|
||||
obj = self.Person.objects.only(*('id', 'name',)).get()
|
||||
self.assertEqual(obj.name, person.name)
|
||||
self.assertEqual(obj.age, None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue