Commits

Martin Skala  committed 3b007cf Merge

Fix saving in cases where the object's ID isn't an int.

  • Participants
  • Parent commits ab5e7d7, 1952cc8

Comments (0)

Files changed (1)

File django_roa/db/models.py

             else:
                 result = deserializer(response).next()
             
-            self.id = int(result.object.id)
+            try:
+                self.id = int(result.object.id)
+            except ValueError:
+                self.id = result.object.id
             self = result.object
         
         if origin: