make sure imports don't have the same import_tag

This commit is contained in:
Laura Klünder 2018-12-20 17:45:08 +01:00
parent f4701ec29c
commit ba53627d5c

View file

@ -162,7 +162,10 @@ class Command(BaseCommand):
element.remove(clippath)
if svg.findall('.//*[@transform]'):
raise CommandError(_('svg contains transform attributes. Use inkscape apply transforms!'))
raise CommandError(_('svg contains transform attributes. Use inkscape apply transforms.'))
if model.objects.filter(space=options['space'], import_tag=options['name']).exists():
raise CommandError(_('objects with this import tag already exist in this space.'))
with MapUpdate.lock():
changed_geometries.reset()