def get_all_domain_setup(): return DomainSetup.query().fetch()
def get_domain_setup(domain): if domain: return DomainSetup.query(DomainSetup.domain_name == domain).get()