Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError when trying to perform a delete through leads Service. #191

Open
aleonsan opened this issue May 29, 2018 · 0 comments
Open

Comments

@aleonsan
Copy link

aleonsan commented May 29, 2018

Intercom Client leads service offers the mixin Delete to delete Lead objects.
But, however this mixin is builtin to work though object attribute id .

class Delete(object):
    """A mixin that provides `delete` functionality."""

    def delete(self, obj):
        """Delete the specified instance of this resource."""
        collection = utils.resource_class_to_collection_name(
            self.collection_class)
        self.client.delete("/%s/%s" % (collection, obj.id), {})
        return obj

and Lead is an id-less object.

Update: Seen fix in #176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant