From def26f43ef9164d9a4fbd768e2bf6b51f8645ce4 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Wed, 13 Oct 2010 17:06:35 +0000 Subject: [PATCH] web/postkey/models.py: permit non-unique hashes in database This needed because hosts.txt already contains a duplicates. But we shouldn't permit adding dups via webinterface. --- web/postkey/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/postkey/models.py b/web/postkey/models.py index 58bf5dd..628a5e2 100644 --- a/web/postkey/models.py +++ b/web/postkey/models.py @@ -4,7 +4,7 @@ class i2phost(models.Model): # Hostname limit is 67 characters maximum, including the '.i2p'. name = models.CharField("I2P hostname", max_length=67, unique=True) # Maximum key length 616 bytes (to account for certs up to 100 bytes). - b64hash = models.CharField("Base 64 hash", max_length=616, unique=True) + b64hash = models.CharField("Base 64 hash", max_length=616) description = models.TextField("Description", blank=True) date_added = models.DateTimeField(auto_now_add=True) activated = models.BooleanField(default=False)