Jonas Haag  committed d186bdb

Follow-up fix for r191, which actually didn't fix the problem.

  • Participants
  • Parent commits 26ce7cd
  • Branches default

Comments (0)

Files changed (1)

File djangotoolbox/

         values = []
         for field in embedded_instance._meta.fields:
             value = field.pre_save(embedded_instance, add)
-            if field.primary_key and value == field.default:
+            if field.primary_key and value is None:
                 # exclude unset pks ({"id" : None})
             values.append((field, value))