director needs to be case insensitive for now

This commit is contained in:
j 2011-11-22 13:59:40 +01:00
parent b5a040764e
commit c8b1b3072d

View file

@ -21,6 +21,7 @@ def find(info, guess=True):
else:
fkey = key
if isinstance(info[key], list):
fkey = '%s__iexact'%key
q = q.filter(**{fkey: '\n'.join(info[key]) + '\n'})
else:
q = q.filter(**{fkey:info[key]})