diff --git a/website/migrations/0181_suggestion_organization.py b/website/migrations/0181_suggestion_organization.py
new file mode 100644
index 000000000..976131cd0
--- /dev/null
+++ b/website/migrations/0181_suggestion_organization.py
@@ -0,0 +1,23 @@
+# Generated by Django 5.1.4 on 2025-01-11 18:20
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("website", "0180_rename_project_visit_count_repo_repo_visit_count"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="suggestion",
+ name="organization",
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ to="website.organization",
+ ),
+ ),
+ ]
diff --git a/website/models.py b/website/models.py
index 9172cabc6..3d5e22476 100644
--- a/website/models.py
+++ b/website/models.py
@@ -867,6 +867,7 @@ class Suggestion(models.Model):
up_votes = models.IntegerField(null=True, blank=True, default=0)
down_votes = models.IntegerField(null=True, blank=True, default=0)
created = models.DateTimeField(auto_now_add=True)
+ organization = models.ForeignKey(Organization, null=True, blank=True, on_delete=models.CASCADE)
def __str__(self):
return f"{self.title} by {self.user}"
diff --git a/website/templates/feature_suggestion.html b/website/templates/feature_suggestion.html
index 28cfa29ea..938331ab1 100644
--- a/website/templates/feature_suggestion.html
+++ b/website/templates/feature_suggestion.html
@@ -126,6 +126,11 @@
User:{{ suggestion.user }}
+ {% if suggestion.organization %}
+
+ Organization:{{ suggestion.organization.name }}
+
+ {% endif %}
{{ suggestion.suggestion_id }}