domain_owner.py添加dashboard_fields字段白名单
This commit is contained in:
parent
1323ea493d
commit
185becf5a8
@ -44,4 +44,34 @@ class DomainOwner(Document):
|
|||||||
team: DF.Link | None
|
team: DF.Link | None
|
||||||
title: DF.Data | None
|
title: DF.Data | None
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
pass
|
|
||||||
|
dashboard_fields = (
|
||||||
|
"fullname",
|
||||||
|
"title",
|
||||||
|
"c_fn",
|
||||||
|
"c_ln",
|
||||||
|
"c_em",
|
||||||
|
"c_ph",
|
||||||
|
"c_ph_num",
|
||||||
|
"c_ph_type",
|
||||||
|
"c_org",
|
||||||
|
"c_adr",
|
||||||
|
"c_ct",
|
||||||
|
"c_st",
|
||||||
|
"c_pc",
|
||||||
|
"c_regtype",
|
||||||
|
"reg_contact_type",
|
||||||
|
"team",
|
||||||
|
"cocode",
|
||||||
|
"c_idtype_gswl",
|
||||||
|
"c_idnum_gswl"
|
||||||
|
)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get_list_query(query):
|
||||||
|
DomainOwner = jingrow.qb.PageType("Domain Owner")
|
||||||
|
query = query.where(DomainOwner.team == jingrow.local.team().name)
|
||||||
|
return query.run(as_dict=True)
|
||||||
|
|
||||||
|
def get_pg(self, pg):
|
||||||
|
return pg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user