Answer the question
In order to leave comments, you need to log in
How to send date to view in django?
There is a view:
@login_required
def bonuses(request):
template = 'incomes.html'
context = {'user': request.user, }
return render_to_response(template, context_instance=RequestContext(request, context))
{% for bonus in user.treenode.bonuses.all %}
<tr class="entry{% if not bonus.paid %} fresh{% endif %}">
<td class="date"><p>{{ bonus.use_date }}</p></td>
<td class="total"><p>{{ bonus.total }}</p></td>
<td class="newbie"><p>{{ bonus.newbie }}</p></td>
<td class="line"><p>{{ bonus.line }}</p></td>
</tr>
{% endfor %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question