Fixed compatibility with Python3K in forms

Fixed forms compatability with python 3K and django 1.6