7c5e0b115e6d

Okay, okay, names can be two letters.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 16 Sep 2009 20:39:07 -0400
parents 1e16f9597207
children 8bf8390a254a
branches/tags (none)
files blog/views.py projects/views.py site-media/scripts/validate-comment-form.js

Changes

--- a/blog/views.py	Mon Aug 31 21:31:41 2009 -0400
+++ b/blog/views.py	Wed Sep 16 20:39:07 2009 -0400
@@ -38,7 +38,7 @@
     
     if ( fields.has_key('name') and 
          not fields['name'].strip() == '' and
-         not len(fields['name']) < 3 and
+         not len(fields['name']) < 2 and
          fields.has_key('body') and 
          not fields['body'].strip() == '' and
          not len(fields['body']) < 3 and
--- a/projects/views.py	Mon Aug 31 21:31:41 2009 -0400
+++ b/projects/views.py	Wed Sep 16 20:39:07 2009 -0400
@@ -28,7 +28,7 @@
     
     if ( fields.has_key('name') and 
          not fields['name'].strip() == '' and
-         not len(fields['name']) < 3 and
+         not len(fields['name']) < 2 and
          fields.has_key('body') and 
          not fields['body'].strip() == '' and
          not len(fields['body']) < 3 and
--- a/site-media/scripts/validate-comment-form.js	Mon Aug 31 21:31:41 2009 -0400
+++ b/site-media/scripts/validate-comment-form.js	Wed Sep 16 20:39:07 2009 -0400
@@ -4,7 +4,7 @@
 		rules: {
 			name: {
 				required: true,
-				minlength: 3,
+				minlength: 2,
 				maxlength: 40
 			},
 			body: {