solved the unique key/index for the database backend

This commit is contained in:
Jiri Barton 2012-06-05 16:05:14 +02:00
parent 0d3d4014fa
commit 0d0ab22e88

View file

@ -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: