Esempio n. 1
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
Esempio n. 2
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
Esempio n. 3
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()
Esempio n. 4
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()