Commits

Lars Yencken  committed 74cbea3

Updated models to use max_length instead of maxlength.

  • Participants
  • Parent commits cf35873

Comments (0)

Files changed (2)

File eval/models.py

             ('R', 'Reading'),
             ('L', 'Lookup'),
         )
-    method = models.CharField(maxlength=30, choices=METHOD_CHOICES)
+    method = models.CharField(max_length=30, choices=METHOD_CHOICES)
 
     # The stimulus word to be evaluated
-    word = models.CharField(maxlength=30)
+    word = models.CharField(max_length=30)
 
     #------------------------------------------------------------------------#
 
     #------------------------------------------------------------------------#
 
     # The name of the user (XXX do we need it?)
-    #name = models.CharField(maxlength=20, unique=True)
+    #name = models.CharField(max_length=20, unique=True)
 
     # Have they studied Japanese before?
     studiedJapanese = models.BooleanField()
             ('A', 'Advanced'),
             ('N', 'Fluent or native-like'),
         )
-    level = models.CharField(maxlength=1, choices=LEVEL_CHOICES, null=True,
+    level = models.CharField(max_length=1, choices=LEVEL_CHOICES, null=True,
         blank=True)
 
     # The entire set of stimulus for reading collection evaluation
     # The readings that they guess when shown the stimulus word. Should
     # be comma separated. If the response is blank, then the user skipped this
     # stimulus.
-    response = models.CharField(maxlength=200, null=True, blank=True)
+    response = models.CharField(max_length=200, null=True, blank=True)
 
     #------------------------------------------------------------------------#
 
 
     # The query that the user used to look up the stimulus word. Should
     # be comma separated. 
-    queries = models.CharField(maxlength=200, null=True, blank=True)
+    queries = models.CharField(max_length=200, null=True, blank=True)
 
     # The time the user spend on looking up the word.
     time = models.FloatField()
             ('R', 'Reading'),
             ('L', 'Lookup'),
         )
-    method = models.CharField(maxlength=30, choices=METHOD_CHOICES)
+    method = models.CharField(max_length=30, choices=METHOD_CHOICES)
 
     # The stimulus word to be evaluated
-    word = models.CharField(maxlength=30)
+    word = models.CharField(max_length=30)
 
     #------------------------------------------------------------------------#
 
     #------------------------------------------------------------------------#
 
     # The name of the user (XXX do we need it?)
-    #name = models.CharField(maxlength=20, unique=True)
+    #name = models.CharField(max_length=20, unique=True)
 
     # Have they studied Chinese before?
     studiedChinese = models.BooleanField()
             ('A', 'Advanced'),
             ('N', 'Fluent or native-like'),
         )
-    level = models.CharField(maxlength=1, choices=LEVEL_CHOICES, null=True,
+    level = models.CharField(max_length=1, choices=LEVEL_CHOICES, null=True,
         blank=True)
 
     # The entire set of stimulus for reading collection evaluation
     # The readings that they guess when shown the stimulus word. Should
     # be comma separated. If the response is blank, then the user skipped this
     # stimulus.
-    response = models.CharField(maxlength=200, null=True, blank=True)
+    response = models.CharField(max_length=200, null=True, blank=True)
 
     #------------------------------------------------------------------------#
 
 
     # The query that the user used to look up the stimulus word. Should
     # be comma separated. 
-    queries = models.CharField(maxlength=200, null=True, blank=True)
+    queries = models.CharField(max_length=200, null=True, blank=True)
 
     # The time the user spend on looking up the word.
     time = models.FloatField()

File pinyin/models.py

     #------------------------------------------------------------------------#
 
     # Query string
-    query = models.CharField(maxlength=50)
+    query = models.CharField(max_length=50)
 
     # The target that they were looking for, and its rank in the results.
-    target = models.CharField(maxlength=30, null=True, blank=True)
+    target = models.CharField(max_length=30, null=True, blank=True)
 
     # The target language being looked up.
     LANG_CHOICES = (
             ('cn', 'Chinese'),
             ('jp', 'Japanese'),
         )
-    targetLanguage = models.CharField(maxlength=2, choices=LANG_CHOICES)
+    targetLanguage = models.CharField(max_length=2, choices=LANG_CHOICES)
 
     # The ip address of the user access.
     ipAddress = models.IPAddressField()