summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-27 00:52:27 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-01-27 00:52:27 +0100
commitdfae9be92081a677d3cbc4b3469866ef4fcd96dc (patch)
tree15bc16ffcc632c5c357b1932a17ae8af584a9305 /ishtar_common/models.py
parent097c76b3e8c658c3798b922864ee2c6ba0606636 (diff)
downloadIshtar-dfae9be92081a677d3cbc4b3469866ef4fcd96dc.tar.bz2
Ishtar-dfae9be92081a677d3cbc4b3469866ef4fcd96dc.zip
Allow null value for exclude_from_merge
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c900e028e..d7e63856b 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2010-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2010-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -1115,7 +1115,8 @@ class Merge(models.Model):
blank=True, null=True)
merge_exclusion = models.ManyToManyField("self",
blank=True, null=True)
- exclude_from_merge = models.BooleanField(default=False)
+ exclude_from_merge = models.NullBooleanField(default=False,
+ blank=True, null=True)
# 1 for one word similarity, 2 for two word similarity, etc.
MERGE_CLEMENCY = None
EMPTY_MERGE_KEY = '--'