
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
django-persistent-filters
Advanced tools
Provide a django middleware that take care to persist the querystring in the browser cookies or in the Django Request object.
Django Persistent Filters is a Python package which provide a django middleware that take care to persist the querystring in the browser cookies or in the Django Request object.
If you have a ListView with a Form for filter the objects, this package is perfect for you!
Use the package manager pip to install:
pip install django-persistent-filters
Put the middleware in the settings.py
file:
MIDDLEWARE = [
...,
"persistent_filters.middleware.PersistentFiltersMiddleware"
]
If you want to store filters in the Request object instead Cookies, add in the settings.py
file:
PERSISTENT_FILTERS_IN_REQUEST = True
Add the urls with a filter form in settings.py
file:
PERSISTENT_FILTERS_URLS = [
# You can use name urls
reverse_lazy("user:list"),
# or you can write the path without domain
"/user/list"
]
Add in the form the button for reset filters:
<button type="submit" name="reset-filters">Reset</button>
FAQs
Provide a django middleware that take care to persist the querystring in the browser cookies or in the Django Request object.
We found that django-persistent-filters demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.