Remove duplicate context setting
This commit is contained in:
parent
78b074fb57
commit
c54a2effcb
1 changed files with 0 additions and 2 deletions
|
@ -30,7 +30,6 @@ class BlogLatestEntriesPlugin(BlogPlugin):
|
||||||
context = super(BlogLatestEntriesPlugin, self).render(context, instance, placeholder)
|
context = super(BlogLatestEntriesPlugin, self).render(context, instance, placeholder)
|
||||||
context['posts_list'] = instance.get_posts(context['request'])
|
context['posts_list'] = instance.get_posts(context['request'])
|
||||||
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
||||||
context['placeholder'] = placeholder
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,7 +47,6 @@ class BlogLatestEntriesPluginCached(BlogPlugin):
|
||||||
context = super(BlogLatestEntriesPluginCached, self).render(context, instance, placeholder)
|
context = super(BlogLatestEntriesPluginCached, self).render(context, instance, placeholder)
|
||||||
context['posts_list'] = instance.get_posts()
|
context['posts_list'] = instance.get_posts()
|
||||||
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
|
||||||
context['placeholder'] = placeholder
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue