Aakash Singh
Aakash Singh
> @sainak In this particular case, although commenting out is_property field of Bed Model will not affect the results of **ConsultationBedSerializer**, as we are going to handle the is_occupied property...
> @sainak But since **Bed** is the related object, how can we annotate the property of Bed while fetching the objects of **ConsultationBed**. Because, as per my knowledge, we can...
@dhruv-goyal-10 ```python ConsultationBed.objects.all().annotate( bed__is_occupied=Exists( ConsultationBed.objects.filter(bed__id=OuterRef("id"), end_date__isnull=True) ) ).values_list("bed__is_occupied", flat=True) ``` edit: it does not work but instead we can prefetch the annotated bed query ```py ConsultationBed.objects.all() .select_related("consultation") .prefetch_related("assets") .prefetch_related( Prefetch(...
cosing in favor of #9079 github doesn't allow pushing changes to workflows on contributors repos
@Sahil-Sinha-11 you can reopen the pr and revert changes to the workflows folder, I had to close it because github was not allowing me to push to it I'll add...
@vigneshhari it affects all uploaded files
Partially completed in https://github.com/ohcnetwork/care/pull/2534
Test are passing locally Manually verified for a8c00965f3f792fffecaad968efcb57544ebabc0
> @sainak do you mean creating a Boolean field on consultation model that is changed with consent operations? yes
@DraKen0009 the changes look, one final step is to update the data from [this](https://docs.google.com/spreadsheets/d/1hN13p-BDbb1Pkl3a8tcVdWFsFxncju2QPfeOEkKh51E/edit#gid=169054315) sheet