main #2
@ -44,4 +44,34 @@ class DomainOwner(Document):
|
||||
team: DF.Link | None
|
||||
title: DF.Data | None
|
||||
# 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