I am doing queryset with my model. Now the queryset is displaying all the data in my html page. But I want to display only the logged in users data.
models.p
Below code should work fine.
{% for data in filter %}
- {{ data.user.username }} - {{ data.user.get_full_name }}
{% endfor %}
{% for Data in filter %}
{{ Data.user }}
{{ Data.Date }}
{{ Data.Status }}
{% empty %}
As you would not be using filters, so filters.py should be removed.
This will also not work. Make the changes as required.
{{ filter.form.as_table }}