Commits

Anonymous committed d186bdb

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

Comments (0)

Files changed (1)

djangotoolbox/fields.py

         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})
                 continue
             values.append((field, value))