Skip to content

Commit

Permalink
Order Option by order_number
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Feb 9, 2024
1 parent b096413 commit 9061058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Option(models.Model):
is_other = models.BooleanField(default=False, verbose_name="is other textfield")

class Meta:
ordering = ["question__number", "sub_question__question__number"]
ordering = ["order_number"]

def __str__(self):
return f"Value: {self.value}"
Expand Down

0 comments on commit 9061058

Please sign in to comment.