Commits

Matthew Schinckel  committed 3c1d6f3

Better handle a None value.

  • Participants
  • Parent commits 00a922f
  • Tags 1.0.2

Comments (0)

Files changed (1)

File weekday_field/fields.py

         return value
 
     def get_db_prep_value(self, value, connection=None, prepared=False):
-        return ",".join([str(x) for x in value])
+        return ",".join([str(x) for x in value or []])
 
 try:
     from south.modelsinspector import add_introspection_rules