SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 485ce33f authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Clean up some small leftovers

parent dd56e5c2
No related branches found
No related tags found
No related merge requests found
...@@ -13,14 +13,10 @@ class PublicationIndex(indexes.SearchIndex, indexes.Indexable): ...@@ -13,14 +13,10 @@ class PublicationIndex(indexes.SearchIndex, indexes.Indexable):
date = indexes.DateTimeField(model_attr='publication_date') date = indexes.DateTimeField(model_attr='publication_date')
abstract = indexes.CharField(model_attr='abstract') abstract = indexes.CharField(model_attr='abstract')
doi_label = indexes.CharField(model_attr='doi_label') doi_label = indexes.CharField(model_attr='doi_label')
institutions = indexes.MultiValueField()
def get_updated_field(self): def get_updated_field(self):
return 'latest_activity' return 'latest_activity'
def prepare_institutions(self, obj):
return [inst.name for inst in obj.institutions.all()]
def get_model(self): def get_model(self):
return Publication return Publication
......
...@@ -36,7 +36,6 @@ $(document).ready(function($) { ...@@ -36,7 +36,6 @@ $(document).ready(function($) {
<li><a href="{% url 'organizations:dashboard' %}">Go to the dashboard</a></li> <li><a href="{% url 'organizations:dashboard' %}">Go to the dashboard</a></li>
<li><a href="{% url 'organizations:organization_create' %}">Create a new Organization instance</a></li> <li><a href="{% url 'organizations:organization_create' %}">Create a new Organization instance</a></li>
<li><a href="{% url 'funders:funders_dashboard' %}">Link Funders to Organizations</a> ({{ nr_funders_wo_organization }} found in need of linking)</li> <li><a href="{% url 'funders:funders_dashboard' %}">Link Funders to Organizations</a> ({{ nr_funders_wo_organization }} found in need of linking)</li>
<li><a href="{% url 'affiliations:institutions_without_organization' %}">Link (deprecated) affiliations.Institutions to Organizations</a> ({{ nr_institutions_wo_organization }} found in need of linking)</li>
</ul> </ul>
{% endif %} {% endif %}
</div> </div>
......
...@@ -25,8 +25,7 @@ class ContributorAdmin(admin.ModelAdmin): ...@@ -25,8 +25,7 @@ class ContributorAdmin(admin.ModelAdmin):
'user__first_name', 'user__first_name',
'user__last_name', 'user__last_name',
'user__email', 'user__email',
'orcid_id', 'orcid_id']
'affiliations__institution__name']
class ContributorInline(admin.StackedInline): class ContributorInline(admin.StackedInline):
......
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