SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit de79fead authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Put back affiliations on about page.

parent f66fb3d6
No related branches found
No related tags found
No related merge requests found
...@@ -285,7 +285,10 @@ class PrecookedEmail(models.Model): ...@@ -285,7 +285,10 @@ class PrecookedEmail(models.Model):
###################### ######################
class EditorialCollege(models.Model): class EditorialCollege(models.Model):
"""A SciPost Editorial College for a specific discipline.""" """A SciPost Editorial College for a specific discipline.
DEPRECATED. To be removed.
"""
discipline = models.CharField(max_length=255, unique=True) discipline = models.CharField(max_length=255, unique=True)
def __str__(self): def __str__(self):
...@@ -296,6 +299,8 @@ class EditorialCollegeFellowship(TimeStampedModel): ...@@ -296,6 +299,8 @@ class EditorialCollegeFellowship(TimeStampedModel):
""" """
Editorial College Fellowship connecting Editorial College and Contributors, Editorial College Fellowship connecting Editorial College and Contributors,
maybe with a limiting start/until date. maybe with a limiting start/until date.
DEPRECATED. To be removed.
""" """
contributor = models.ForeignKey('scipost.Contributor', on_delete=models.CASCADE, contributor = models.ForeignKey('scipost.Contributor', on_delete=models.CASCADE,
related_name='+') related_name='+')
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
{% endif %} {% endif %}
</p> </p>
{% if fellowship.affiliation %} {% if fellowship.contributor.affiliations.active.first %}
<span class="text-muted">({{fellowship.affiliation}})</span> <span class="text-muted">({{ fellowship.contributor.affiliations.active.first.institution.name }})</span>
{% endif %} {% endif %}
<div> <div>
{% for expertise in fellowship.contributor.expertises %} {% for expertise in fellowship.contributor.expertises %}
......
...@@ -126,7 +126,6 @@ ...@@ -126,7 +126,6 @@
<hr> <hr>
{% for discipline,fellowships in disciplines.items %} {% for discipline,fellowships in disciplines.items %}
{#{% for college, codes in object_list %}#}
<h2 class="highlight" id="editorial_college_{{ discipline|lower }}">Editorial College ({{ discipline }})</h2> <h2 class="highlight" id="editorial_college_{{ discipline|lower }}">Editorial College ({{ discipline }})</h2>
<div class="row"> <div class="row">
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
<div class="card-columns"> <div class="card-columns">
{% for fellowship in fellowships.0 %} {% for fellowship in fellowships.0 %}
<div class="card bg-white contributor mb-1"> <div class="card bg-white contributor mb-1">
{% include 'scipost/_contributor_short.html' with contributor=fellowship.contributor %} {% include 'scipost/_contributor_short.html' with fellowship=fellowship %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment