Howto pass a value from html template to the view. Not vice versa. Django
===

I'm wondering how to do this: I wrote a custom template filter

    #delete_objects.py
    from django import template
    
    register = template.Library()
    
    @register.filter
    def value(value, ID):
        return ID

and I have template, that looks something like this (subjects is just a model):

    {% for subject in subjects %}
        <li>{{ subject.name }}
        {% load delete_objects %}
            {{ var|value:subject.id }} <<<<------HERE-------
    {% endfor %}
So I want to use this variable 'var' in my views.py.
Is that possible to do? if so how? I tryed so many things, but no luck :(