Skip to content

Commit

Permalink
Fix for update projects with geocoding_providers empty or None.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Nov 8, 2023
1 parent 469b402 commit c9e04b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion g3w-admin/qdjango/views/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def get_initial(self):
initial = super().get_initial()

# Get intial for geocoding_providers
initial['geocoding_providers'] = json.loads(self.object.geocoding_providers)
if self.object.geocoding_providers:
initial['geocoding_providers'] = json.loads(self.object.geocoding_providers)

return initial

Expand Down

0 comments on commit c9e04b1

Please sign in to comment.