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)

@@ -281,17 +281,18 @@
  'in pro
-c
+gr
 ess':%0A  

change in process to in progress