500 on CreateElements due to image/polygon unique constraint failure
Sentry Issue: ARKINDEX-BACKEND-4R
UniqueViolation: duplicate key value violates unique constraint "zone_unique_image_polygon"
DETAIL: Key (image_id, polygon)=(7f6710d9-047b-4d6c-8d25-abe18a3925e4, 0102000000050000000000000000408540000000000080724000000000004885400000000000707640000000000098A1400000000000707540000000000096A140000000000080714000000000004085400000000000807240) already exists.
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
IntegrityError: duplicate key value violates unique constraint "zone_unique_image_polygon"
DETAIL: Key (image_id, polygon)=(7f6710d9-047b-4d6c-8d25-abe18a3925e4, 0102000000050000000000000000408540000000000080724000000000004885400000000000707640000000000098A1400000000000707540000000000096A140000000000080714000000000004085400000000000807240) already exists.
(17 additional frame(s) were not displayed)
...
File "django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)