1. David Larlet
  2. django-roa

Commits

Nikhil Chelliah  committed 1952cc8

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

  • Participants
  • Parent commits 2cbc819
  • Branches default

Comments (0)

Files changed (1)

File django_roa/db/models.py

View file
  • Ignore whitespace
             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: