pydanny/django-uni-form — Issue #120: Invalid filter: 'as_uni_form'
Author: jdh13
Created: 2011-11-11 08:48:47+00:00
State: open

hello,

i've upgraded from 0.8 to 0.9 and now it's broken.
The browser displays errors:
Django Version:	1.3
Exception Type:	TemplateSyntaxError
Exception Value:

Invalid filter: 'as_uni_form'

Exception Location:	/Users/me/python/virtualenv/myapp/lib/python2.6/site-packages/django/template/base.py in find_filter, line 320
Python Executable:	/Users/me/python/virtualenv/myapp/bin/python
Python Version:	2.6.1
Python Path:

['/Users/me/python/virtualenv/myapp/myproj',
...
'/Users/me/python/virtualenv/myapp/lib/python2.6/site-packages/django_uni_form-0.9.0-py2.6.egg-info',
...

As you can see, the PythonPath shows the package directory, in which we have:
-rw-r--r-- 1 me staff 0 11 nov 05:51 __init__.py
-rw-r--r-- 1 me staff 184 11 nov 05:51 __init__.pyc
-rw-r--r-- 1 me staff 592 11 nov 05:51 uni_form_field.py
-rw-r--r-- 1 me staff 1164 11 nov 05:51 uni_form_field.pyc
-rw-r--r-- 1 me staff 2371 11 nov 05:51 uni_form_filters.py
-rw-r--r-- 1 me staff 3157 11 nov 05:51 uni_form_filters.pyc
-rw-r--r-- 1 me staff 6711 11 nov 05:51 uni_form_tags.py
-rw-r--r-- 1 me staff 7338 11 nov 05:51 uni_form_tags.pyc

i notice that as_uni_form is defined in:
templatetags/uni_form_filters.py:def as_uni_form(form):

on the other hand, if i test my form in a shell, it works:
>>> from myapp.forms import LayoutTestForm
>>> lay = LayoutTestForm()
>>> print lay
company:

email:

password:

re-enter password:

first name:

last name:

Thanks,