Commits

Anonymous committed 2ea2759

all tests work now

  • Participants
  • Parent commits 6ff1faa

Comments (0)

Files changed (2)

         if self.null:
             return None
         return []
-    
+
 #    def pre_save(self, model_instance, add):
 #        pass
 
 class ListModel(models.Model):
     floating_point = models.FloatField()
     names = ListField(models.CharField(max_length=500))
-    names_with_default = ListField(models.CharField(max_length=500), default=())
+    names_with_default = ListField(models.CharField(max_length=500), default=[])
     names_nullable = ListField(models.CharField(max_length=500), null=True)
 
 class FilterTest(TestCase):
     def test_options(self):
         self.assertEquals([entity.names_with_default for entity in
                           ListModel.objects.filter(names__startswith='Sa')],
-                          [(), ()])
+                          [[], []])
 
         # TODO: should it be NULL or None here?
         self.assertEquals([entity.names_nullable for entity in