Skip to content

Commit

Permalink
Fix invalidating project cache on link/unlink search widget. (#790)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Mar 25, 2024
1 parent 4145cfd commit 987caeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions g3w-admin/qdjango/views/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,10 @@ def linkUnlinkWidget(self, link=True):
else:
self.widget.layers.remove(self.layer)

# Invalidate project cache
self.layer.project.invalidate_cache()



class QdjangoLayerDetailView(G3WRequestViewMixin, DetailView):
"""Detail view for qdjango layer object"""
Expand Down

0 comments on commit 987caeb

Please sign in to comment.