Skip to content

Commit

Permalink
Use hashlib instead of django.utils.hashcompat
Browse files Browse the repository at this point in the history
Gets rid of DeprecationWarning from Django 1.5
  • Loading branch information
dpoirier committed Jun 25, 2013
1 parent 5062aa9 commit d4e7e96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion django_openid/models.py
@@ -1,11 +1,15 @@
from django.db import models
from django.conf import settings
from django.utils.hashcompat import md5_constructor
import hashlib
from openid.store.interface import OpenIDStore
import openid.store
from openid.association import Association as OIDAssociation
import time, base64


md5_constructor = hashlib.md5


class Nonce(models.Model):
server_url = models.CharField(max_length=255)
timestamp = models.IntegerField()
Expand Down

0 comments on commit d4e7e96

Please sign in to comment.