django-dbsettings/models.py

10 lines
No EOL
240 B
Python

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