Merge branch 'master' of github.com:rossp/django-helpdesk

This commit is contained in:
Ross Poulton 2013-01-21 17:25:39 +11:00
commit 13702852e1

View File

@ -18,7 +18,7 @@ Assuming 'food' = 'pizza' and 'best_foods' = ['pizza', 'pie', 'cake]:
from django import template
def in_list(value, arg):
return value in arg
return value in ( arg or [] )
register = template.Library()
register.filter(in_list)