Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering now refreshes as you type. #52

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Aksiznarf-Uar
Copy link
Collaborator

No description provided.

@Aksiznarf-Uar Aksiznarf-Uar linked an issue Dec 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@weidenba weidenba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"devices_result.html" is missing. The site device list site can not be rendered.

{% endfor %}
</table>
<div id="results">
{% include "devices_results.html" %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

device_results.html seems to be missing in the git repository.

# Check if the request is an AJAX request
if request.headers.get('X-Requested-With') == 'XMLHttpRequest':
# Handle AJAX request by rendering only the relevant part of the template
html = render_to_string('devices_results.html', {"device_list": self.get_queryset()})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devices_results.html seems to be missing in the git repository. It would be good to have a test, to check if this site can be rendered ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change Device-List Filter to Filter-on-Input
2 participants