new_contents: from django import template
  
  register = template.Library()
  
  
  @register.filter
  def flow_status_css_class(pinstance):
      if not pinstance:
          return 'default'
      if pinstance.cur_activity.status in ['rejected']:
          return 'danger'
      if pinstance.cur_activity.status == 'in process':
          return 'info'
      if pinstance.cur_activity.status == 'finished':
          return 'success'
      return 'default'
  
  
  @register.filter
  def category_have_perm_processes(category, user):
      return category.get_can_apply_processes(user)
  
subject: add lbworkflow_tags.py