Error produced when an advanced filter is added to a view with variable filters ({today}, etc) and an aggregate funcion (COUNT, etc)
Merge branch 'sapns__aggregates_and_variable_filters' into master2
Changed string "managers" in templates for a constant accessed through helpers (h.ROLE_MANAGERS)
Added new features to "helpers"