Skip to content

Commit

Permalink
[Fixes #4352] TemplateSyntaxError at trans in backups/confirm_cancel.…
Browse files Browse the repository at this point in the history
…html
  • Loading branch information
afabiani committed May 28, 2019
1 parent e5c1d5b commit c417076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/base/management/commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def dump_db(config, db_name, db_user, db_port, db_host, db_passwd, target_folder
for table in pg_tables:
print "Dumping GeoServer Vectorial Data : " + table[0]
os.system('PGPASSWORD="' + db_passwd + '" ' + config.pg_dump_cmd + ' -h ' + db_host +
' -p ' + db_port + ' -U ' + db_user + ' -F c -b' +
' -t ' + table[0] + ' -f ' +
' -p ' + str(db_port) + ' -U ' + db_user + ' -F c -b' +
' -t ' + str(table[0]) + ' -f ' +
os.path.join(target_folder, table[0] + '.dump ' + db_name))

except Exception:
Expand Down

0 comments on commit c417076

Please sign in to comment.