Yes you need to put register = template.Library() in your module. See
https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ for
more info on where this code should reside.

On Feb 3, 9:17 am, Jesramz <jesus.ramirez.ute...@gmail.com> wrote:
> source:http://djangosnippets.org/snippets/847/
>
> from django.contrib.auth.models import User, Group
> from django.utils.encoding import force_unicode
> from django import template
>
> Missing anything?
> Would I have to use 'register = template.Library()' ?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to