Package expedient :: Package common :: Package utils :: Package templatetags :: Module ch_extras
[hide private]
[frames] | no frames]

Module ch_extras

source code

Functions [hide private]
 
cat(obj1, obj2) source code
 
check_in_set(value, arg)
returns "checked" if the value is in QuerySet arg else ""
source code
 
is_in_set(value, arg)
returns "True" if the value is in QuerySet arg else "False"
source code
 
contains(value, arg)
returns result of arg in value
source code
 
get_meta_field(object, fieldname)
return getattr(object._meta, fieldname)
source code
 
get_verbose_name(object)
return object's class's verbose name
source code
 
get_class_field(object, fieldname)
return getattr(object.__class__, fieldname)
source code
 
equals(object1, object2) source code
 
leaf_class_is(obj, klass) source code
Variables [hide private]
  register = template.Library()
  __package__ = 'expedient.common.utils.templatetags'
Function Details [hide private]

cat(obj1, obj2)

source code 
Decorators:
  • @register.filter

check_in_set(value, arg)

source code 

returns "checked" if the value is in QuerySet arg else ""

Decorators:
  • @register.filter

is_in_set(value, arg)

source code 

returns "True" if the value is in QuerySet arg else "False"

Decorators:
  • @register.filter

contains(value, arg)

source code 

returns result of arg in value

Decorators:
  • @register.filter

get_meta_field(object, fieldname)

source code 

return getattr(object._meta, fieldname)

Decorators:
  • @register.filter

get_verbose_name(object)

source code 

return object's class's verbose name

Decorators:
  • @register.filter

get_class_field(object, fieldname)

source code 

return getattr(object.__class__, fieldname)

Decorators:
  • @register.filter

equals(object1, object2)

source code 
Decorators:
  • @register.filter

leaf_class_is(obj, klass)

source code 
Decorators:
  • @register.filter