dbsettings/models.py

11 lines
241 B
Python
Raw Normal View History

2019-12-24 13:36:09 +00:00
from django.db import models
# Create your models here.
class Setting(models.Model):
key = models.CharField(primary_key=True, max_length=255)
value = models.CharField(max_length=255)
2019-12-24 13:36:09 +00:00
def __str__(self):
return self.key