summaryrefslogtreecommitdiff
path: root/postgresqleu/util/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2024-04-16 21:01:52 +0000
committerMagnus Hagander2024-04-16 21:02:26 +0000
commit878d1540d083b6ab611d985a6228ec9b5921a893 (patch)
tree2b219cc6a0ddf60af25b297afaae0a77a9a3bb22 /postgresqleu/util/models.py
parentdea25e632d58ccf487b04372f8c7b81b2c46f3a6 (diff)
Fix hashval NULLability
Needs to allow NULL on INSERT, which will then get overwritten by the trigger.
Diffstat (limited to 'postgresqleu/util/models.py')
-rw-r--r--postgresqleu/util/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/util/models.py b/postgresqleu/util/models.py
index 8700dc5f..511293e7 100644
--- a/postgresqleu/util/models.py
+++ b/postgresqleu/util/models.py
@@ -6,7 +6,7 @@ class Storage(models.Model):
key = models.CharField(max_length=16, null=False, blank=False)
storageid = models.IntegerField(null=False, blank=False)
data = models.BinaryField(null=False, blank=False)
- hashval = models.BinaryField(null=False, blank=False)
+ hashval = models.BinaryField(null=True, blank=False)
class Meta:
unique_together = (