On the person detail page, I tried to add an if statement that would only display the organization(s) when present. Unfortunately, I wasn't able to determine how to test for this. When I print person.affiliations, I see is has the value api.Organizations.None, but I don't know how to test for this, as it does not act like the normal None.
On the person detail page, I tried to add an
if
statement that would only display the organization(s) when present. Unfortunately, I wasn't able to determine how to test for this. When I printperson.affiliations
, I see is has the valueapi.Organizations.None
, but I don't know how to test for this, as it does not act like the normalNone
.