Skip to content

Commit

Permalink
[QOLDEV-955] handle alternative naming of '_webassets' collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Oct 25, 2024
1 parent 3538ddc commit c9e66d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ckanext/qgov/common/views/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ def get_included_bundles():
global INCLUDED_BUNDLES
if INCLUDED_BUNDLES is None:
render(u'page.html')
INCLUDED_BUNDLES = g.webassets[u'included'].copy()
g.webassets[u'included'].clear()
if hasattr(g, '_webassets'):
webassets = g._webassets
else:
webassets = g.webassets
INCLUDED_BUNDLES = webassets[u'included'].copy()
webassets[u'included'].clear()
return INCLUDED_BUNDLES


Expand Down

0 comments on commit c9e66d6

Please sign in to comment.