
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
django-search-listview
Advanced tools
ListView which can be searchable, paginate and which doesn't lose query parameter and page number
This library need jQuery ( and Bootstrap for the frond-end ) To install it in your vitualenv on your django project
pip install django-search-listview
INSTALLED_APPS = [
...
'search_listview',
]
from search_listview.list import SearchableListView
class ListDevicePaginate(SearchableListView):
model = Device
template_name = "tests/list.html"
paginate_by = 10
from search_listview.list import SearchableListView
class ListDeviceSearchablePaginate(SearchableListView):
model = Device
template_name = "tests/list.html"
paginate_by = 10
searchable_fields = ["inventory_number", "model_device", "model_device__brand__provider",
"model_device__brand__name"]
specifications = {
"model_device__brand__name": "__icontains"
}
Put the parameter for the query in searchable_fields which will be use to filter the queryset. The specifications which be use in the same way.
<div class="row">
{% include "search_listview/search_and_page.html" %}
</div>
<!--Need jQuery-->
<script src="{% static 'search_listview/js/search_listview.js' %}"></script>
<script>
start_search()
</script>
Now you have a beautifull box with all the fields you need.
FAQs
Searchable and paginable ListView
We found that django-search-listview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.