Skip to content

Check field value before accessing an attribute#3644

Merged
joemull merged 1 commit into
openlibhums:masterfrom
yakky:patch-2
Jun 25, 2024
Merged

Check field value before accessing an attribute#3644
joemull merged 1 commit into
openlibhums:masterfrom
yakky:patch-2

Conversation

@yakky

@yakky yakky commented Jul 26, 2023

Copy link
Copy Markdown
Collaborator

While ReviewAssignment.review_round is usually set by logic functions, in case of customization of the workflow this might be None, it's best to check its value before accessing an attribute of the foreignkey

@Bbkctp

Bbkctp commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@ajrbyers

Copy link
Copy Markdown
Member

test this please

@joemull joemull self-requested a review June 24, 2024 23:57
@joemull joemull self-assigned this Jun 24, 2024
@joemull joemull merged commit 9daf7f8 into openlibhums:master Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants