fix django 1.2 and 1.3 compatibility
fix django 1.2 and 1.3 compatibility

jlaine/django-ldapdb,gentoo/django-ldapdb,chronossc/django-ldapdb,mejiaa/django-ldapdb,django-ldapdb/django-ldapdb,randuhmm/django-ldapdb