xAdd support for django CMS 3.4
This commit is contained in:
parent
8f58eaeec1
commit
6dd9176617
5 changed files with 64 additions and 4 deletions
|
|
@ -733,7 +733,7 @@ class ModelsTest(BaseTest):
|
|||
else:
|
||||
plugins = list(post1.content.cmsplugin_set.filter(language='en').order_by('path', 'depth', 'position'))
|
||||
copy_plugins_to(plugins, post2.content)
|
||||
new = downcast_plugins(post2.content.cmsplugin_set.all())
|
||||
new = list(downcast_plugins(post2.content.cmsplugin_set.all()))
|
||||
self.assertEqual(set(new[0].tags.all()), set([tag1, tag2]))
|
||||
self.assertEqual(set(new[0].tags.all()), set(plugin.tags.all()))
|
||||
|
||||
|
|
@ -766,7 +766,7 @@ class ModelsTest(BaseTest):
|
|||
else:
|
||||
plugins = list(post1.content.cmsplugin_set.filter(language='en').order_by('path', 'depth', 'position'))
|
||||
copy_plugins_to(plugins, post2.content)
|
||||
new = downcast_plugins(post2.content.cmsplugin_set.all())
|
||||
new = list(downcast_plugins(post2.content.cmsplugin_set.all()))
|
||||
self.assertEqual(set(new[0].authors.all()), set([self.user]))
|
||||
|
||||
def test_multisite(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue