diff --git a/core/models/troggle.py b/core/models/troggle.py index 886bcf5..c99e59b 100644 --- a/core/models/troggle.py +++ b/core/models/troggle.py @@ -125,6 +125,10 @@ class Person(TroggleModel): """Boolean: is this person notable?""" return self.notability() > Decimal(1) / Decimal(3) + def get_mugshot_url(self): + # insert code to extract src= url from the blub text + return f"/person/{self.slug}" + def surveyedleglength(self): return sum([personexpedition.surveyedleglength() for personexpedition in self.personexpedition_set.all()]) diff --git a/templates/expedition.html b/templates/expedition.html index d874053..1623a0c 100644 --- a/templates/expedition.html +++ b/templates/expedition.html @@ -49,7 +49,13 @@ an "S" for a survey trip. The colours of the "T" and "S" a {{personexpoday.personexpedition.person.fullname|safe}} {% if personexpoday.personexpedition.person.mug_shot %} -
😃
{% endif %} +
😃
+{% else %} + {% if personexpoday.personexpedition.person.blurb %} +😁 + {% endif %} +{% endif %} + {% for activities in personexpoday.personrow %} {% if activities.personentries or activities.survexblocks %}