Skip to content

Commit

Permalink
Remove value field from Result model
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Feb 14, 2024
1 parent 34c8dee commit 2f3c7b4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Generated by Django 4.1.10 on 2024-02-14 07:21

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("profiles", "0013_answerother"),
]

operations = [
migrations.AlterModelOptions(
name="option",
options={"ordering": ["order_number"]},
),
migrations.RemoveField(
model_name="result",
name="value",
),
migrations.RemoveField(
model_name="result",
name="value_en",
),
migrations.RemoveField(
model_name="result",
name="value_fi",
),
migrations.RemoveField(
model_name="result",
name="value_sv",
),
]
3 changes: 1 addition & 2 deletions profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ def __str__(self):

class Result(models.Model):
topic = models.CharField(max_length=64, null=True)
value = models.CharField(max_length=64, null=True)
description = models.TextField(null=True)

class Meta:
ordering = ["id"]

def __str__(self):
return f"{self.topic} / {self.value}"
return f"{self.topic}"


class Answer(models.Model):
Expand Down

0 comments on commit 2f3c7b4

Please sign in to comment.