How to filter all objects of the ViewModel if only the last InfoModel.check_by_client_a is True ?
I have the structure like this:
class InfoModel(model.Models):
...
service = ForeingKey(ServiceModel)
check_by_client_a = BooleanField()
check_by_client_b = BooleanField()
check_date = DateTimeFiled()
...
class ServiceModel(model.Models):
...
class ViewModel(model.Models):
...
service = ForeingKey(ServiceModel)
...