SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
2a8f18f6
Commit
2a8f18f6
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Update qs
parent
2e510bbd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
affiliations/models.py
+5
-0
5 additions, 0 deletions
affiliations/models.py
affiliations/templates/affiliations/institution_form.html
+1
-1
1 addition, 1 deletion
affiliations/templates/affiliations/institution_form.html
with
6 additions
and
1 deletion
affiliations/models.py
+
5
−
0
View file @
2a8f18f6
...
@@ -3,6 +3,8 @@ from django.urls import reverse
...
@@ -3,6 +3,8 @@ from django.urls import reverse
from
django_countries.fields
import
CountryField
from
django_countries.fields
import
CountryField
from
scipost.models
import
Contributor
from
.constants
import
INSTITUTION_TYPES
,
TYPE_UNIVERSITY
from
.constants
import
INSTITUTION_TYPES
,
TYPE_UNIVERSITY
from
.managers
import
AffiliationQuerySet
from
.managers
import
AffiliationQuerySet
...
@@ -26,6 +28,9 @@ class Institution(models.Model):
...
@@ -26,6 +28,9 @@ class Institution(models.Model):
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'
affiliations:institution_details
'
,
args
=
(
self
.
id
,))
return
reverse
(
'
affiliations:institution_details
'
,
args
=
(
self
.
id
,))
def
contributors
(
self
):
return
Contributor
.
objects
.
filter
(
institution
=
self
)
class
Affiliation
(
models
.
Model
):
class
Affiliation
(
models
.
Model
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
affiliations/templates/affiliations/institution_form.html
+
1
−
1
View file @
2a8f18f6
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<br>
<br>
<h3>
Contributors of {{ institution }}
</h3>
<h3>
Contributors of {{ institution }}
</h3>
<ul>
<ul>
{% for contributor in institution.contributors
.all
%}
{% for contributor in institution.contributors %}
<li>
{{ contributor }}
</li>
<li>
{{ contributor }}
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment