[Fixed]-Django – Save and Manage a Project-wide Setting

1👍

You should store color in a separate model, and store its foreign key in all user models.

class Color(models.Model):

    value = StringField()

class User(models.Model):

    ...
    color = models.ForeignKey(Color)

Leave a comment