Skip to content

Commit

Permalink
Blacking
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme committed Dec 28, 2023
1 parent 5c11443 commit 300842a
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/open_inwoner/cms/cases/views/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,16 @@ def get_second_status_preview(self, statustypen: list) -> Optional[StatusType]:

@property
def is_file_upload_enabled_for_case_type(self) -> bool:
case_upload_enabled = ZaakTypeInformatieObjectTypeConfig.objects.filter_enabled_for_case_type(
self.case.zaaktype
).exists()
logger.info("Case {url} has case type file upload: {case_upload_enabled}".format(
url=self.case.url,
case_upload_enabled=case_upload_enabled))
case_upload_enabled = (
ZaakTypeInformatieObjectTypeConfig.objects.filter_enabled_for_case_type(
self.case.zaaktype
).exists()
)
logger.info(
"Case {url} has case type file upload: {case_upload_enabled}".format(
url=self.case.url, case_upload_enabled=case_upload_enabled
)
)
return case_upload_enabled

@property
Expand All @@ -298,10 +302,13 @@ def is_file_upload_enabled_for_statustype(self) -> bool:
)
)
return False
logger.info("Case {url} status type {status_type} has status type file upload: {enabled_for_status_type}".format(
url=self.case.url,
status_type=self.case.status.statustype,
enabled_for_status_type=enabled_for_status_type))
logger.info(
"Case {url} status type {status_type} has status type file upload: {enabled_for_status_type}".format(
url=self.case.url,
status_type=self.case.status.statustype,
enabled_for_status_type=enabled_for_status_type,
)
)
return enabled_for_status_type

@property
Expand Down

0 comments on commit 300842a

Please sign in to comment.