mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Added explicit test of using 'get' method with select_subclasses
--HG-- extra : transplant_source : %9F%EA%C6%81%1D%BE%AA%0BQ5%A7%ECs%0Dwb%B8%B15%60
This commit is contained in:
parent
a5186212b2
commit
37e4eecace
1 changed files with 5 additions and 1 deletions
|
|
@ -367,7 +367,11 @@ if django.VERSION >= (1, 2):
|
|||
return self.related.imtests
|
||||
|
||||
|
||||
|
||||
def test_get_method_with_select_subclasses(self):
|
||||
self.assertEqual(InheritanceManagerTestParent.objects.select_subclasses().get(id=self.child1.id),
|
||||
self.child1)
|
||||
|
||||
|
||||
class TimeStampedModelTests(TestCase):
|
||||
def test_created(self):
|
||||
t1 = TimeStamp.objects.create()
|
||||
|
|
|
|||
Loading…
Reference in a new issue