I want to pass 2 variables to a templatetag from within a template, a name 
and a date (eg, John 29/09/2018) to output the result of the templatetag 
def.

The reason I want to do this is:

>From a list of all names:

The name comes from a model that has a foreign key to another model that 
has actions performed by that name by date and I want to output the action 
taken on that date so something like:

from django import template
from django.conf import settings
from django.utils.html import escape
from user.models import person
from action.models import data

def (get_action):
    action = Data.objects.get.filter(person=name).filter(date=date)
    return action

but how do I pass the variables in the 1st place please?


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8d7b9f60-9f88-41c6-8fec-cf858d7e6574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to