This commit is contained in:
German Ilyin 2016-02-27 03:30:31 +06:00 committed by Iacopo Spalletti
parent 90ed83c821
commit d11bb96bd4

View file

@ -324,6 +324,8 @@ class LatestPostsPlugin(BasePostPlugin):
def copy_relations(self, oldinstance):
for tag in oldinstance.tags.all():
self.tags.add(tag)
for category in oldinstance.categories.all():
self.categories.add(category)
def get_posts(self, request):
posts = self.post_queryset(request)