Skip to content

Commit

Permalink
fix: adds section on WissenschaftlerInnenaustausch
Browse files Browse the repository at this point in the history
fixes #147
  • Loading branch information
sennierer committed Nov 6, 2023
1 parent 46caccd commit 35457dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paas_theme/provide_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ def enrich_person_context(person_object, context):
relation_type_id__in=classes["akad_funktionen"]["präsidentin"][0],
)
],
"WissenschaftlerInnenaustausch": [
f"{rel.related_place.name} {get_date_range(rel, classes['time_ranges_ids'])}" for rel in person_object.personplace_set.filter(relation_type_id=3375).order_by("start_date")
],
"Mitgliedschaften in anderen Akademien": [
f'<a href="/institution/{rel.related_institution_id}">{rel.related_institution}</a>, {rel.relation_type.name} {get_date_range(rel, classes["time_ranges_ids"])}'
for rel in person_object.personinstitution_set.filter(
Expand Down

0 comments on commit 35457dd

Please sign in to comment.