make sure imports don't have the same import_tag
This commit is contained in:
parent
f4701ec29c
commit
ba53627d5c
1 changed files with 4 additions and 1 deletions
|
@ -162,7 +162,10 @@ class Command(BaseCommand):
|
||||||
element.remove(clippath)
|
element.remove(clippath)
|
||||||
|
|
||||||
if svg.findall('.//*[@transform]'):
|
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():
|
with MapUpdate.lock():
|
||||||
changed_geometries.reset()
|
changed_geometries.reset()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue