GenericReferenceField docs
This commit is contained in:
parent
94e86a0be1
commit
81dd5adccf
3 changed files with 33 additions and 3 deletions
|
|
@ -413,6 +413,7 @@ class FieldTest(unittest.TestCase):
|
|||
bm.reload()
|
||||
|
||||
self.assertEqual(bm.bookmark_object, post_1)
|
||||
self.assertTrue(isinstance(bm.bookmark_object, Post))
|
||||
|
||||
bm.bookmark_object = link_1
|
||||
bm.save()
|
||||
|
|
@ -420,6 +421,7 @@ class FieldTest(unittest.TestCase):
|
|||
bm.reload()
|
||||
|
||||
self.assertEqual(bm.bookmark_object, link_1)
|
||||
self.assertTrue(isinstance(bm.bookmark_object, Link))
|
||||
|
||||
Link.drop_collection()
|
||||
Post.drop_collection()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue