ok so I added == to my if statement and independently verified that the 
values were displaying and are correct. So I was wrong though .id is not 
.CUSTOMERID because I returned self.name for the customer model it needs to 
match the strings

so i have 

        {% for e in customers %}
                {% for d in vms %}
                        {% if e.NAME == d.CUSTOMERID %}
                                <div> {{ e.id }} - {{ e.NAME }} - {{ 
d.VMNAME }$
                        {% endif %}
                        <br>
                        e.name - {{ e.NAME }}
                        d.customerid - {{ d.CUSTOMERID }} 

//I did this to validate I was getting data and the names match when they 
are displayed but the if statement doesn't display anything.

                {% endfor %}
        {% endfor %}


-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3c42e133-b325-4694-b3c3-406ae50fd56b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to