You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
375 B
16 lines
375 B
from minibase.blueprints.main.models import Industries
|
|
import minibase.blueprints.database.utils as dbUtils
|
|
|
|
from sqlalchemy import case
|
|
|
|
|
|
def queryIndustryNames():
|
|
choices = Industries.query.order_by(Industries.name.asc())
|
|
return choices
|
|
|
|
def queryIndustryNamesWithDefault(defId):
|
|
choices = dbUtils.queryNameWithDefaultId(Industries,defId)
|
|
return choices
|
|
|
|
|