SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 0da81f17 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix bugs in nominations view

add default case when fellows have no competing interests
remove double triangle for browsers with display list
parent ee6487c4
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ class FellowQuerySet(models.QuerySet):
profile_CI, related_CI = CompetingInterest.objects.filter(
Q(profile=profile) | Q(related_profile=profile)
).values_list("profile", "related_profile")
).values_list("profile", "related_profile") or ([], [])
return self.exclude(
contributor__profile__pk__in=profile_CI + related_CI,
......
......@@ -136,7 +136,7 @@
<details
{% if not nomination.invitation or 'edadmin' not in user_roles %}open{% endif %}
class="card mb-3">
<summary class="card-header list-triangle">Voting Rounds</summary>
<summary class="card-header d-block list-triangle">Voting Rounds</summary>
<div class="card-body">
<div hx-get="{% url 'colleges:_hx_nomination_voting_rounds_tab' nomination_id=nomination.id round_id=nomination.latest_voting_round.id|default:0 %}"
hx-trigger="intersect once"></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