Commits

Nikhil Chelliah  committed 1952cc8

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

  • Participants
  • Parent commits 2cbc819

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: