Minor changes to djopenid to make it work with Django 1.4