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
In hasjob.views.helper.inject_filter_options, as an app context processor, it's called for every single query whether it's needed or not. Rather than insert actual values, it should insert functions which the template can call when needed.
The text was updated successfully, but these errors were encountered:
Fair point, so let's have the outer function return an inner function, which hits cache. Rather than return a dict of job_location_filters, job_type_filters and job_category_filters, we return a dict with a single key, job_filters, which is a function that when called returns another dict with the above three keys.
The templates will have to be updated accordingly.
In
hasjob.views.helper.inject_filter_options
, as an app context processor, it's called for every single query whether it's needed or not. Rather than insert actual values, it should insert functions which the template can call when needed.The text was updated successfully, but these errors were encountered: