Commit 7baf949634a8ff0a9457bfa71581abe5538b5b49

Authored by ifac0
1 parent 694e2c5a

inserindo templatestags de exam #171

exam/templatetags/__init__.py 0 → 100644
exam/templatetags/dict_access.py 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +from django import template
  2 +
  3 +from forum.models import Forum
  4 +
  5 +register = template.Library()
  6 +
  7 +"""
  8 + Template tag to load all the foruns of a post
  9 +"""
  10 +
  11 +@register.filter
  12 +def value(dictionary, key):
  13 + return dictionary[key]
... ...