Commits

Anonymous committed 98fd1c7

make sure we test an str.

  • Participants
  • Parent commits e3f0bd0

Comments (0)

Files changed (1)

File django_authopenid/views.py

     """ test if an openid is already in database """
     is_exist = True
     try:
-        uassoc = UserAssociation.objects.get(openid_url__exact = openid_url)
+        uassoc = UserAssociation.objects.get(openid_url__exact = str(openid_url))
     except:
         is_exist = False
     return is_exist