django Ordering a field with user signed in
<p>I am a newbee in Django, And I am trying to alter one of my view to order by the user signed in. For example, If 'test@example.com' is  signed in,  then the Tview should give data related to Test@example.com in the first row. At the moment it is in no specific order. </p>

<pre><code>Current order: for a user signed as  test@example.com
    GEL_TEACT trea@example.com
    TREAT_ACT test@example.com

    I want to order this as:

    Product OWNER
    TREAT_ACT test@example.com
    GEL_TEACT trea@example.com
</code></pre>

<p>my View: </p>

<pre><code>class PListView(ListView):
    model = Product

    template_name = "app/product_list.html"

project_list_view = PListView.as_view()
</code></pre>

<p>my template:</p>

<pre><code>&lt;tbody&gt;
                {% for product in object_list %}
                &lt;tr&gt;
                    &lt;td&gt;&lt;a href="{% url "product-detail" pro_id=project.pk %}"&gt;{{ product.title }}&lt;/a&gt;&lt;/td&gt;
                    &lt;td&gt;
                        &lt;a href="{% url "product-update" project_id=project.pk %}"&gt;
                            &lt;i class="fi-pencil"&gt;&lt;/i&gt;
                        &lt;/a&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
                {% endfor %}

            &lt;/tbody&gt;
</code></pre>

<p>Thanks for your time.</p>