diff options
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 |
commit | dfae9be92081a677d3cbc4b3469866ef4fcd96dc (patch) | |
tree | 15bc16ffcc632c5c357b1932a17ae8af584a9305 /ishtar_common/models.py | |
parent | 097c76b3e8c658c3798b922864ee2c6ba0606636 (diff) | |
download | Ishtar-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.py | 5 |
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 = '--' |