Show choosen option in a notification Feed, Django
- by apoo
Hey
I have a model where :
LIST_OPTIONS = (
('cheap','cheap'),
('expensive','expensive'),
('normal', 'normal'),
)
then I have assigned the LIST_OPTIONS to nature variable.
nature = models.CharField(max_length=15, choices=LIST_OPTIONS, null=False, blank=False).
then I save it:
if self.pk:
…