mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
solved the unique key/index for the database backend
This commit is contained in:
parent
0d3d4014fa
commit
0d0ab22e88
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ except ImportError:
|
|||
"the constance database backend.")
|
||||
|
||||
class Constance(models.Model):
|
||||
key = models.TextField()
|
||||
key = models.CharField(max_length=255, unique=True)
|
||||
value = PickledObjectField()
|
||||
|
||||
class Meta:
|
||||
|
|
|
|||
Loading…
Reference in a new issue