[Answer]-How can I make databasefields unchangeable in Django?

1👍

Use “editable” attribute. When you set “False”, element will not be shown in the admin, that is, you can’t change its value.

e.g.

licence_name = models.CharField(max_length=64, editable=False)

👤AndiS

Leave a comment