django-dbsettings/dbsettings/models.py

10 lines
227 B
Python

from django.db import models
# Create your models here.
class Setting(models.Model):
key = models.CharField(primary_key=True, max_length=255)
value = models.TextField()
def __str__(self):
return self.key