Comply with MySQL CharField restriction of 255 chars
This commit is contained in:
parent
ce4c240043
commit
99f0ccaf72
1 changed files with 3 additions and 3 deletions
|
@ -3,8 +3,8 @@ from django.db import models
|
||||||
# Create your models here.
|
# Create your models here.
|
||||||
|
|
||||||
class Setting(models.Model):
|
class Setting(models.Model):
|
||||||
key = models.CharField(primary_key=True, max_length=512)
|
key = models.CharField(primary_key=True, max_length=255)
|
||||||
value = models.CharField(max_length=512)
|
value = models.CharField(max_length=255)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.key
|
return self.key
|
||||||
|
|
Loading…
Reference in a new issue