display the option name in the settings list

This commit is contained in:
Andreas Zweili 2017-12-06 20:35:06 +01:00
parent 71438ed14c
commit 2ec5a9ca7e
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ class Setting(models.Model):
option = models.ForeignKey(Option, on_delete=models.CASCADE)
enabled = models.BooleanField(default=False)
def __str__(self):
return str(self.option)
class ArticleStatus(models.Model):
name = models.CharField(max_length=50, unique=True)