summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-14 12:36:27 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-14 12:36:27 -0400
commit24002cc267b4664e233faaf6f9c292de30eb6e0d (patch)
tree81ccae798eb38db0906f7d28db814c95cfb05982
parenta582f43e979ad22434e8ed518b47cb0f3780dc91 (diff)
downloadaskbot-24002cc267b4664e233faaf6f9c292de30eb6e0d.tar.gz
askbot-24002cc267b4664e233faaf6f9c292de30eb6e0d.tar.bz2
askbot-24002cc267b4664e233faaf6f9c292de30eb6e0d.zip
fixed mysql issue of unique varchar longer than 255
-rwxr-xr-xforum/models/user.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/forum/models/user.py b/forum/models/user.py
index ff0af7fa..9b8936e5 100755
--- a/forum/models/user.py
+++ b/forum/models/user.py
@@ -107,7 +107,9 @@ class ValidationHashManager(models.Manager):
return False
class ValidationHash(models.Model):
- hash_code = models.CharField(max_length=256,unique=True)
+ #todo: was 256 chars - is that important?
+ #on mysql 255 is max for unique=True
+ hash_code = models.CharField(max_length=255,unique=True)
seed = models.CharField(max_length=12)
expiration = models.DateTimeField(default=one_day_from_now)
type = models.CharField(max_length=12)