(self, id)
Find am Episode by its own ID or by a merged ID
Find am Episode by its own ID or by a merged ID
Find am Episode by its own ID or by a merged ID
def get_by_any_id(self, id):
        """Find am Episode by its own ID or by a merged ID"""
        # TODO: should this be done in the model?
        try:
            return self.get(id=id)
        except self.model.DoesNotExist:
            return self.get(merged_uuids__uuid=id)
def get_by_any_id ( self , id ) : # TODO: should this be done in the model? try : return self . get ( id = id ) except self . model . DoesNotExist : return self . get ( merged_uuids__uuid = id )