Script Tenant #10976
TomasMondim
started this conversation in
General
Script Tenant
#10976
Replies: 2 comments 4 replies
-
What error did you get? Did you import the tenancy module at the top of your script? |
Beta Was this translation helpful? Give feedback.
1 reply
-
from tenancy.models import Tenant, TenantGroup…tenant_group = ObjectVar(model=TenantGroup, required=False)tenant = ObjectVar(model=Tenant, query_params={”tenant_group_id”: ”$tenant_group”})Sent from my iPhoneOn 18 Nov 2022, at 17:13, Tomas Mondim ***@***.***> wrote:
Hello, im trying to create an objetcVar for the people to choose the tenant of the device, but i cant find a way to do it like i do in the device_type or in the role!
It goes well with the others, just fail with the tenant, anyone knows the reason?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, im trying to create an objetcVar for the people to choose the tenant of the device, but i cant find a way to do it like i do in the device_type or in the role!

It goes well with the others, just fail with the tenant, anyone knows the reason?
Beta Was this translation helpful? Give feedback.
All reactions