-from django.db import models\r
-\r
-class OpenIdNonce(models.Model):\r
- server_url = models.URLField()\r
- timestamp = models.IntegerField()\r
- salt = models.CharField( max_length=50 )\r
-\r
- def __unicode__(self):\r
- return "Nonce: %s" % self.nonce\r
-\r
- class Meta:\r
- app_label = 'forum'\r
-\r
-class OpenIdAssociation(models.Model):\r
- server_url = models.TextField(max_length=2047)\r
- handle = models.CharField(max_length=255)\r
- secret = models.TextField(max_length=255) # Stored base64 encoded\r
- issued = models.IntegerField()\r
- lifetime = models.IntegerField()\r
- assoc_type = models.TextField(max_length=64)\r
-\r
- def __unicode__(self):\r
- return "Association: %s, %s" % (self.server_url, self.handle)\r
-\r
- class Meta:\r
- app_label = 'forum'\r
+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'