diff options
| -rw-r--r-- | archaeological_finds/models_finds.py | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 811e6be74..891d99d28 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1075,11 +1075,13 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,      def set_localisation(self, place, context, value):          if not self.container: +            if not value: +                return              raise ImporterError(_(u"No container have been set - the "                                    u"localisation cannot be set."))          localisation = self.container.set_localisation(place, value) -        if not localisation: +        if value and value != '-' and not localisation:              raise ImporterError(                  unicode(_(u"The division number {} have not been set "                            u"for the warehouse {}.")).format(  | 
