Skip to content
This repository
Browse code

Add maxlength attribute to submit form title field.

  • Loading branch information...
commit 09b0be25833486c5fe3226f8090474d80eff3b6b 1 parent d7644b8
Max Goodman chromakode authored spladug committed
5 r2/r2/controllers/validator/validator.py
@@ -529,8 +529,9 @@ def run(self, text, text2 = ''):
529 529
530 530
531 531 class VTitle(VLength):
532   - def __init__(self, param, max_length = 300, **kw):
533   - VLength.__init__(self, param, max_length, **kw)
  532 + max_length = 300
  533 + def __init__(self, param, **kw):
  534 + VLength.__init__(self, param, self.max_length, **kw)
534 535
535 536 def param_docs(self):
536 537 return {
3  r2/r2/templates/newlink.html
@@ -24,6 +24,7 @@
@@ -59,7 +60,7 @@

0 comments on commit 09b0be2

Please sign in to comment.
Something went wrong with that request. Please try again.