Skip to content

Commit 64cb05c

Browse files
committed
Remove educational challenge option
This feature was never properly defined, all this did was add a logo to the card.
1 parent 11791b3 commit 64cb05c

5 files changed

Lines changed: 26 additions & 11 deletions

File tree

app/grandchallenge/challenges/filters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class Meta(TitleDescriptionModalityStructureFilter.Meta):
3030
*TitleDescriptionModalityStructureFilter.Meta.fields,
3131
"series",
3232
"task_types",
33-
"educational",
3433
)
3534
search_fields = (
3635
*TitleDescriptionModalityStructureFilter.Meta.search_fields,

app/grandchallenge/challenges/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"series",
3232
"publications",
3333
"hidden",
34-
"educational",
3534
"display_forum_link",
3635
"disclaimer",
3736
"contact_email",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 4.2.25 on 2025-10-09 12:39
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("challenges", "0057_remove_challenge_forum"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="challenge",
15+
name="educational",
16+
field=models.BooleanField(
17+
default=False,
18+
help_text="It is an educational challenge",
19+
null=True,
20+
),
21+
),
22+
]

app/grandchallenge/challenges/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ class Challenge(ChallengeBase, FieldChangeMixin):
286286
is_active_until = models.DateField(
287287
help_text="The date at which the challenge becomes inactive",
288288
)
289-
educational = models.BooleanField(
290-
default=False, help_text="It is an educational challenge"
289+
educational = deprecate_field(
290+
models.BooleanField(
291+
default=False, help_text="It is an educational challenge"
292+
)
291293
)
292294
workshop_date = models.DateField(
293295
null=True,

app/grandchallenge/challenges/templates/challenges/challenge_card_body.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525
</a>
2626
{% endif %}
2727

28-
{% if challenge.educational %}
29-
<span class="badge badge-dark above-stretched-link p-1 mt-1"
30-
title="This is an educational challenge">
31-
<i class="fas fa-university fa-fw"></i>
32-
</span>
33-
{% endif %}
34-
3528
{% if challenge.cached_num_participants %}
3629
<span class="badge badge-dark above-stretched-link p-1 mt-1"
3730
title="{{ challenge.cached_num_participants }} participant{{ challenge.cached_num_participants|pluralize }}">

0 commit comments

Comments
 (0)