here there is some extra work by passing through python.... It could be something like:

SESRupture.objects.filter( ses__ses_collection__lt_realization = hazard_output.gmfcollection.lt_realization )