projects
/
flowspy
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a967161
)
Comment the helptext line to avoid issues with django 1.3
author
Leonidas Poulopoulos
<leopoul@noc.grnet.gr>
Wed, 16 Oct 2013 12:09:20 +0000
(15:09 +0300)
committer
Leonidas Poulopoulos
<leopoul@noc.grnet.gr>
Wed, 16 Oct 2013 12:09:20 +0000
(15:09 +0300)
monkey_patch/models.py
patch
|
blob
|
history
diff --git
a/monkey_patch/models.py
b/monkey_patch/models.py
index
9fe1d6b
..
9cfa367
100644
(file)
--- a/
monkey_patch/models.py
+++ b/
monkey_patch/models.py
@@
-8,5
+8,5
@@
def longer_username(sender, *args, **kwargs):
sender._meta.get_field("username").max_length = MAX_USERNAME_LENGTH()
# For Django 1.2 to work, the validator has to be declared apart from max_length
sender._meta.get_field("username").validators = [MaxLengthValidator(MAX_USERNAME_LENGTH())]
sender._meta.get_field("username").max_length = MAX_USERNAME_LENGTH()
# For Django 1.2 to work, the validator has to be declared apart from max_length
sender._meta.get_field("username").validators = [MaxLengthValidator(MAX_USERNAME_LENGTH())]
- sender._meta.get_field("username").help_text = _("Required, %s characters or fewer. Only letters, numbers, and @, ., +, -, or _ characters." % MAX_USERNAME_LENGTH())
+ #sender._meta.get_field("username").help_text = _("Required, %s characters or fewer. Only letters, numbers, and @, ., +, -, or _ characters." % MAX_USERNAME_LENGTH())
class_prepared.connect(longer_username)
class_prepared.connect(longer_username)