You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BaseTileJsonVivew.__init__() calls get_min_zoom, get_max_zoom, etc. which in turns calls BaseVectorView.get_layers and BaseVectorView.get_layer_class_kwargs.
If you were to override BaseVectorView.get_layer_class_kwargs with an implementation that depends on Django ergonomics (self.request, self.args, self.kwargs, etc.), you would be called by BaseTileJsonVivew.__init__ outside of the View.dispatch which breaks your code and causes a crash.
A solution would be to remove your sanity checks from BaseTileJsonVivew.__init__() (maybe make a Django check like the admin does for list_display ?).
The text was updated successfully, but these errors were encountered:
BaseTileJsonVivew.__init__()
callsget_min_zoom
,get_max_zoom
, etc. which in turns callsBaseVectorView.get_layers
andBaseVectorView.get_layer_class_kwargs
.If you were to override
BaseVectorView.get_layer_class_kwargs
with an implementation that depends on Django ergonomics (self.request
,self.args
,self.kwargs
, etc.), you would be called byBaseTileJsonVivew.__init__
outside of theView.dispatch
which breaks your code and causes a crash.A solution would be to remove your sanity checks from
BaseTileJsonVivew.__init__()
(maybe make a Django check like the admin does forlist_display
?).The text was updated successfully, but these errors were encountered: