Re: Storing settings

12 views
Skip to first unread message

Melvyn Sopacua

unread,
Nov 7, 2016, 12:19:48 PM11/7/16
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages