def docket_idb_data(request, docket_id, slug): docket, context = core_docket_data(request, docket_id) context.update({ "parties": docket.parties.exists(), # Needed to show/hide parties tab. "docket_entries": docket.docket_entries.exists(), "origin_csv": choices_to_csv(docket.idb_data, "origin"), "jurisdiction_csv": choices_to_csv(docket.idb_data, "jurisdiction"), "arbitration_csv": choices_to_csv(docket.idb_data, "arbitration_at_filing"), "class_action_csv": choices_to_csv(docket.idb_data, "termination_class_action_status"), "procedural_progress_csv": choices_to_csv(docket.idb_data, "procedural_progress"), "disposition_csv": choices_to_csv(docket.idb_data, "disposition"), "nature_of_judgment_csv": choices_to_csv(docket.idb_data, "nature_of_judgement"), "judgment_csv": choices_to_csv(docket.idb_data, "judgment"), "pro_se_csv": choices_to_csv(docket.idb_data, "pro_se"), }) return render(request, "docket_idb_data.html", context)
def docket_idb_data(request, docket_id, slug): docket, context = core_docket_data(request, docket_id) context.update({ 'parties': docket.parties.exists(), # Needed to show/hide parties tab. 'docket_entries': docket.docket_entries.exists(), 'origin_csv': choices_to_csv(docket.idb_data, 'origin'), 'jurisdiction_csv': choices_to_csv(docket.idb_data, 'jurisdiction'), 'arbitration_csv': choices_to_csv(docket.idb_data, 'arbitration_at_filing'), 'class_action_csv': choices_to_csv(docket.idb_data, 'termination_class_action_status'), 'procedural_progress_csv': choices_to_csv(docket.idb_data, 'procedural_progress'), 'disposition_csv': choices_to_csv(docket.idb_data, 'disposition'), 'nature_of_judgment_csv': choices_to_csv(docket.idb_data, 'nature_of_judgement'), 'judgment_csv': choices_to_csv(docket.idb_data, 'judgment'), 'pro_se_csv': choices_to_csv(docket.idb_data, 'pro_se'), }) return render(request, 'docket_idb_data.html', context)
def docket_idb_data( request: HttpRequest, docket_id: int, slug: str, ) -> HttpResponse: docket, context = core_docket_data(request, docket_id) if docket.idb_data is None: raise Http404("No IDB data for this docket at this time") context.update( { # Needed to show/hide parties tab. "parties": docket.parties.exists(), "docket_entries": docket.docket_entries.exists(), "origin_csv": choices_to_csv(docket.idb_data, "origin"), "jurisdiction_csv": choices_to_csv( docket.idb_data, "jurisdiction" ), "arbitration_csv": choices_to_csv( docket.idb_data, "arbitration_at_filing" ), "class_action_csv": choices_to_csv( docket.idb_data, "termination_class_action_status" ), "procedural_progress_csv": choices_to_csv( docket.idb_data, "procedural_progress" ), "disposition_csv": choices_to_csv(docket.idb_data, "disposition"), "nature_of_judgment_csv": choices_to_csv( docket.idb_data, "nature_of_judgement" ), "judgment_csv": choices_to_csv(docket.idb_data, "judgment"), "pro_se_csv": choices_to_csv(docket.idb_data, "pro_se"), } ) return render(request, "docket_idb_data.html", context)