Exemple #1
0
def get_content():
  return {"Post Item":PostItem.all(), "Post Category":PostCategory.all()}
Exemple #2
0
 def render(cls, context, * args, ** kwargs):
   categories_list = PostCategory.all()
   return cls.render_block(template_name='block_blogcategories.html',
                           block_title=_('Categories'),
                           context={'categories_list': categories_list})