Commit 79a2a3d1 authored by François Perrad's avatar François Perrad

save always returns the primary key

parent 0c25e774
......@@ -130,11 +130,7 @@ function save (class, obj)
rawset(obj, '_subobjects', nil)
end
if primary_key then
return obj[primary_key]
else
return 'saved'
end
return obj[primary_key]
end
function delete (class, obj)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment