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

Create, remove and update tenants to accept both single items and lists #944

Open
sebawita opened this issue Mar 12, 2024 · 1 comment
Open

Comments

@sebawita
Copy link

Currently, the create, update, and remove tenant functions require us to provide a list of Tenant objects, even if we are dealing with one tenant object.

It would be nice, to have an option to either provide a single tenant object (without wrapping it in a list) or a list (the current behaviour).

papers.tenants.create(
    Tenant(name="ten-name")
)
papers.tenants.update(
    Tenant(name="ten-name", activity_status=TenantActivityStatus.HOT)
)
papers.tenants.remove("ten-name")
@tsmith023
Copy link
Contributor

Implemented in #973

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

2 participants