Django 1.5 compat

The backend simple did not work with Django 1.5. This fixes it.
I don't know, from which Django version the JoinInfo class exists. Probably there should be a check.