'Returns the ID of the created object.
For  dynamic insertion of resources created in modals,
this method returns the id of the created object.
Defaults to returning the ``id`` attribute.'

def get_object_id(self, obj):

    return obj.id
