def has_answered_non_response(self): open_batch = Batch.currently_open_for(self.household.location) return self.multichoiceanswer.filter(question__group__name="NON_RESPONSE", batch=open_batch).count() > 0
def has_answered_non_response(self): open_batch = Batch.currently_open_for(self.household.location) return self.multichoiceanswer.filter(question__group__name="NON_RESPONSE", batch=open_batch).count() > 0
def has_answered_non_response(self): open_batch = Batch.currently_open_for(self.location) has_answered_non_response = self.multichoiceanswer.filter(question__group__name="NON_RESPONSE", batch=open_batch, householdmember=None) return has_answered_non_response.exists()
def has_answered_non_response(self): open_batch = Batch.currently_open_for(self.location) has_answered_non_response = self.multichoiceanswer.filter(question__group__name="NON_RESPONSE", batch=open_batch, householdmember=None) return has_answered_non_response.exists()