Skip to content

Commit 7a5a871

Browse files
author
Steve Ivy
committed
Reduce 'code' length to 255 to stop asploding mysql.
stupid database.
1 parent 7121cab commit 7a5a871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invitation/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class InvitationCode(models.Model):
99
"""Invitation code model"""
10-
code = models.CharField(blank=True, max_length=256, unique=True,
10+
code = models.CharField(blank=True, max_length=255, unique=True,
1111
verbose_name=_(u"Invitation code"))
1212
is_used = models.BooleanField(default=False,
1313
verbose_name=_(u"Is code used?"))

0 commit comments

Comments
 (0)