In a django model I need to set a default for a choice field but I don't get how to do the syntax part
This is the list
CHAT_STYLES = [
("orange", "orange"),
("purple", "purple"),
("aquamarine", "aquamarine"),
("aqua", "aqua"),
("beige", "beige"),
("yellow", "yellow"),
("green", "green"),
("blue", "blue")
]
I tried to do like this
chat_styles = models.CharField(max_length=2, choices=CHAT_STYLES, default=CHAT_STYLES."purple")
or
chat_styles = models.CharField(max_length=2, choices=CHAT_STYLES, default=CHAT_STYLES["purple"])
but it didn't work