Gitiles
Code Review
Sign In
gerrit.opencord.org
/
exampleservice
/
refs/heads/null
/
.
/
xos
/
attic
/
exampletenant_bottom.py
blob: 7ac737eccc1e10a72558c73d09aeac25f1a74cbd [
file
] [
log
] [
blame
]
Sapan Bhatia
ce657e6
2017-04-21 14:20:41 +0200
[
diff
] [
blame
]
1
def
model_policy_exampletenant
(
pk
):
2
with
transaction
.
atomic
():
3
tenant
=
ExampleTenant
.
objects
.
select_for_update
().
filter
(
pk
=
pk
)
4
if
not
tenant
:
5
return
6
tenant
=
tenant
[
0
]
7
tenant
.
manage_container
()
8