Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

maxlength versus max_length

0 views
Skip to first unread message

Alexander

unread,
Aug 19, 2010, 10:57:17 AM8/19/10
to Django OpenID
Hey.

To make Django OpenID work I had to change models.py to look like
this:

from django.db import models

class Nonce(models.Model):
nonce = models.CharField(max_length=8)
expires = models.IntegerField()
def __str__(self):
return "Nonce: %s" % self.nonce

class Association(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 __str__(self):
return "Association: %s, %s" % (self.server_url, self.handle)

Is that something to add to the svn?
Reply all
Reply to author
Forward
0 new messages