Skip to content

Commit b839759

Browse files
committed
Add paddleboarding as a trip type
A number of paddleboarding trips have just been tagged as "None" with activity type "other." Let's fix that.
1 parent 82a4ee1 commit b839759

File tree

3 files changed

+83
-1
lines changed

3 files changed

+83
-1
lines changed

ws/enums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ class TripType(enum.Enum):
360360
SEA_KAYAKING = "boating_kayaking_sea"
361361
CANOEING = "boating_canoeing"
362362
SURFING = "boating_surfing"
363+
PADDLEBOARDING = "boating_paddleboarding"
363364

364365
# Climbing
365366
BOULDERING = "climbing_bouldering"
@@ -396,6 +397,7 @@ def label(self):
396397
self.MOUNTAIN_BIKING: "Mountain biking",
397398
self.NONE: "None, or not applicable",
398399
self.OTHER: "Other",
400+
self.PADDLEBOARDING: "Paddleboarding",
399401
self.RESORT_SKIING: "Resort skiing",
400402
self.ROAD_BIKING: "Road biking",
401403
self.SEA_KAYAKING: "Sea kayaking",
@@ -419,6 +421,7 @@ def _categorized(cls) -> dict[str, list["TripType"]]:
419421
"Boating": [
420422
cls.CANOEING,
421423
cls.KAYAKING,
424+
cls.PADDLEBOARDING,
422425
cls.SEA_KAYAKING,
423426
cls.SURFING,
424427
],

ws/icons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
TripType.BOULDERING: "hands", # kinda looks like a spotter?
2828
TripType.MOUNTAIN_BIKING: "biking", # pro has `biking-mountain`
2929
TripType.ROAD_BIKING: "biking",
30-
TripType.YOGA: "om", # yoga has been requested, but doesn't exist yet
30+
TripType.YOGA: "om",
3131
}
3232
)
3333

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Generated by Django 4.2.23 on 2025-09-29 16:11
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
import django.db.models.deletion
6+
7+
8+
class Migration(migrations.Migration):
9+
dependencies = [
10+
("ws", "0013_trip_program_no_default"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="trip",
16+
name="trip_type",
17+
field=models.CharField(
18+
choices=[
19+
(
20+
"Biking",
21+
[
22+
("biking_road", "Road biking"),
23+
("biking_mountain", "Mountain biking"),
24+
],
25+
),
26+
(
27+
"Boating",
28+
[
29+
("boating_canoeing", "Canoeing"),
30+
("boating_kayaking", "Kayaking"),
31+
("boating_paddleboarding", "Paddleboarding"),
32+
("boating_kayaking_sea", "Sea kayaking"),
33+
("boating_surfing", "Surfing"),
34+
],
35+
),
36+
(
37+
"Climbing",
38+
[
39+
("climbing_bouldering", "Bouldering"),
40+
("climbing_gym", "Gym climbing"),
41+
("climbing_ice", "Ice climbing"),
42+
("climbing_sport", "Sport climbing, top rope"),
43+
("climbing_trad", "Trad climbing"),
44+
],
45+
),
46+
(
47+
"Hiking",
48+
[
49+
("hiking_hiking", "Hiking"),
50+
("hiking_trail_running", "Trail running"),
51+
],
52+
),
53+
(
54+
"Skiing",
55+
[
56+
("skiing_bc", "Backcountry skiing"),
57+
("skiing_xc", "Cross-country skiing"),
58+
("skiing_resort", "Resort skiing"),
59+
],
60+
),
61+
(
62+
"Miscellaneous",
63+
[
64+
("ice_skating", "Ice skating"),
65+
("ultimate", "Ultimate"),
66+
("yoga", "Yoga"),
67+
],
68+
),
69+
(
70+
"Other, N/A",
71+
[("none", "None, or not applicable"), ("other", "Other")],
72+
),
73+
],
74+
db_index=True,
75+
max_length=255,
76+
verbose_name="Primary trip activity",
77+
),
78+
),
79+
]

0 commit comments

Comments
 (0)