Commits

Matthew Schinckel committed 9ba3d5b

We need to use .items() instead of .iteritems(), as we may change the dict as we iterate.

  • Participants
  • Parent commits 412a69f

Comments (0)

Files changed (1)

File rest_api/options.py

                     # compare what is already there, and mark changes.
                     getattr(instance, key).all().delete()
                     for val in value:
-                        for k,v in val.iteritems():
+                        for k,v in val.items():
                             f = getattr(instance, key).model._meta.get_field(k)
                             if f.primary_key:
                                 del val[k]