Currently it is possible only possible to do these two queries:
if pro_catg:
results = (Pro.pro_catg == pro_catg)
else:
results = DataItem.select_all()
but that doesn't make much sense. If you query on a pro_catg, say LINEARITY_2RG, then you should do:
results = LINEARITY_2RG.select_all()
because then you can also query for raws etc, like
results = IFU_SCI_RAW.select_all()
Currently it is possible only possible to do these two queries:
but that doesn't make much sense. If you query on a pro_catg, say
LINEARITY_2RG, then you should do:because then you can also query for raws etc, like