Dear Richard, Thank you for your feedback. So there are multiple stage types associated with a sample, and I plan to check a priori whether a sample has no stage types associated (whether equivalent to a user-defined null case). But for each stage type, it is not exceptional to have no stages. (Let me know if I'm sounding too vague)
basically there are (used Stage1, etc. here in place of actual stage names) Stage1 Stage2 Stage3 ... and each Sample may have 0 - multiple associated StageN objects. Probably the best solution is revising my schema (in the long run). But if try/catch expressions are expensive, and I'd prefer to check whether there are no stages then write try/catch, because of large number of samples I'd bee looping over. Also, I was wondering if there is a way to combine the above two calls without calling stage1_set twice. Thanks, Moon -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

