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 | b73887aed90d7e9a455efbb44a52b3042a753a6d (patch) | |
| tree | 15bc16ffcc632c5c357b1932a17ae8af584a9305 /ishtar_common/models.py | |
| parent | e53967a6f6a84948ca678e081f981cea131a07b7 (diff) | |
| download | Ishtar-b73887aed90d7e9a455efbb44a52b3042a753a6d.tar.bz2 Ishtar-b73887aed90d7e9a455efbb44a52b3042a753a6d.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 = '--'  | 
