jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.31k stars 330 forks source link

Empty 'filters' dictonary passed to html renderer #361

Open prateek-ponnuru opened 4 years ago

prateek-ponnuru commented 4 years ago

While opening the summary page, i keep getting 'attribute error' as the 'filters' dictionary in the context object is empty. Upon some digging, i see the filters dictionary is set based on 'raw_filters' which in turn is set as below - raw_filters = request.session.get(self.filters_key, {}) I could see the session object does not contain this information and neither could i see any code that would have set the session object.

lovetoburnswhen commented 4 years ago

Getting the same issue:

 2020-04-28T02:21:44:DEBUG:base:872: Exception while resolving variable 'overalltime' in template 'silk/requests.html'.
 Traceback (most recent call last):
     current = current[bit]
 KeyError: 'overalltime'

 During handling of the above exception, another exception occurred:

   File "/.../env/lib/python3.7/site-packages/django/template/base.py", line 837, in _resolve_lookup
 AttributeError: 'dict' object has no attribute 'overalltime'

for many vars