Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.2.9 on 2026-03-17 08:23
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this migration renamed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because there are two migration files with the same name.
image

# Generated by Django 5.2.9 on 2026-04-03 04:51

import django.db.models.deletion
from django.db import migrations, models
Expand All @@ -7,11 +7,17 @@
class Migration(migrations.Migration):

dependencies = [
('resources', '0002_casestudy_link'),
('resources', '0003_alter_casestudy_content_alter_casestudy_link'),
('tool_picker', '0004_alter_checkboxoption_order_alter_question_order'),
]

operations = [
migrations.AlterField(
model_name='casestudy',
name='cover_image',
field=models.ImageField(default='', upload_to='case_studies/', verbose_name='Case Study Cover Image'),
preserve_default=False,
),
migrations.CreateModel(
name='RequestDemo',
fields=[
Expand Down
2 changes: 0 additions & 2 deletions apps/resources/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class CaseStudy(UserResource):
cover_image = models.ImageField(
upload_to="case_studies/",
verbose_name="Case Study Cover Image",
null=True,
blank=True,
)
tool = models.ForeignKey[Tool, Tool](
Tool,
Expand Down
18 changes: 18 additions & 0 deletions apps/tool_picker/migrations/0005_alter_tool_catalogs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.2.9 on 2026-04-08 09:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('tool_picker', '0004_alter_checkboxoption_order_alter_question_order'),
]

operations = [
migrations.AlterField(
model_name='tool',
name='catalogs',
field=models.ManyToManyField(help_text='After adding or updating a catalog, the related questions are automatically populated to this tool.', related_name='tool_catalogs', to='tool_picker.catalog'),
),
]
10 changes: 9 additions & 1 deletion apps/tool_picker/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class Tool(UserResource):
catalogs = models.ManyToManyField(
Catalog,
related_name="tool_catalogs",
help_text="After adding or updating a catalog, the related questions are automatically populated to this tool.",
)
name = models.CharField[str, str](max_length=200)
tagline = models.CharField[str, str](max_length=300, blank=True)
Expand Down Expand Up @@ -186,7 +187,14 @@ def __str__(self):
class OrdinalTypeEnum(models.IntegerChoices):
"""Enum representing scale of ordinal type question."""

NOT_AVAILABLE = 100, ("n/a")
"""
Note: The enum labels are intentionally descriptive and user-friendly so they can be
used directly in the frontend UI and remain consistent with design requirements.
"""
NOT_AVAILABLE = (
100,
("We don't know enough to answer at this time or don't want to include this when considering options"),
)
ONE = 1, ("One")
TWO = 2, ("Two")
THREE = 3, ("Three")
Expand Down
Loading