Hi,

On Saturday 05 November 2016 15:26:52 Bogdan P. wrote:

> {% for quadrant in priority_groups %}
>      <select name="quadrant{{ quadrant.id }}"
>         onchange="$('#quadrant-form').submit()">
>     {% for option in quadrant.quadrant.all %}
>           <option value="{{ option.id }}"
>             {% if user_profile.quadrant1 == option.id %}
                    ^^^^^^^^^^^^

Can you show the part in the view where you provide this variable to the 
template?
If you don't, then that's your problem and the fix that probably works 
is to use request.user.profile.quadrant1.

-- 
Melvyn Sopacua

-- 
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/2491716.LQ6EkWdMKj%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to