X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..183aa1f98a61acb441e082951ff8c24c93cfcc27:/forum_modules/openidauth/models.py diff --git a/forum_modules/openidauth/models.py b/forum_modules/openidauth/models.py old mode 100755 new mode 100644 index d6cc991..d76902d --- a/forum_modules/openidauth/models.py +++ b/forum_modules/openidauth/models.py @@ -1,26 +1,26 @@ -from django.db import models - -class OpenIdNonce(models.Model): - server_url = models.URLField() - timestamp = models.IntegerField() - salt = models.CharField( max_length=50 ) - - def __unicode__(self): - return "Nonce: %s" % self.nonce - - class Meta: - app_label = 'forum' - -class OpenIdAssociation(models.Model): - server_url = models.TextField(max_length=2047) - handle = models.CharField(max_length=255) - secret = models.TextField(max_length=255) # Stored base64 encoded - issued = models.IntegerField() - lifetime = models.IntegerField() - assoc_type = models.TextField(max_length=64) - - def __unicode__(self): - return "Association: %s, %s" % (self.server_url, self.handle) - - class Meta: - app_label = 'forum' +from django.db import models + +class OpenIdNonce(models.Model): + server_url = models.URLField() + timestamp = models.IntegerField() + salt = models.CharField( max_length=50 ) + + def __unicode__(self): + return "Nonce: %s" % self.nonce + + class Meta: + app_label = 'forum' + +class OpenIdAssociation(models.Model): + server_url = models.TextField(max_length=2047) + handle = models.CharField(max_length=255) + secret = models.TextField(max_length=255) # Stored base64 encoded + issued = models.IntegerField() + lifetime = models.IntegerField() + assoc_type = models.TextField(max_length=64) + + def __unicode__(self): + return "Association: %s, %s" % (self.server_url, self.handle) + + class Meta: + app_label = 'forum'