Skip to content

Commit d470eb4

Browse files
committed
[Fixes #14083] fixes Cloning error for older datasets with IMPORTER_ENABLE_DYN_MODELS=False
1 parent 1b9a0d0 commit d470eb4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

geonode/upload/handlers/common/vector.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,12 @@ def __fixup_primary_key(self, saved_dataset):
11761176
if schema:
11771177
schema.managed = False
11781178
schema.save()
1179-
1179+
else:
1180+
logger.warning(
1181+
"No ModelSchema for %s.",
1182+
table_name,
1183+
)
1184+
return
11801185
with connection.cursor() as cursor:
11811186
column = connection.introspection.get_primary_key_columns(cursor, table_name)
11821187
if column:

0 commit comments

Comments
 (0)