Django docs
-
def posts_request(request):
message=ApplyPost.objects.filter( blah blah)
if message:
return render (request,'blah.html',{'message':message})
- blah.html
{% if message %}
{% for post in message %}
{% if post.provider %}
....
{% endif %}
{% if post.accept == True and post.provider %}
...
...
{% endif %}
....You can add multiple if,elif, with Operators ....
{% endfor %}
{% if message %}
{% if a == b or c == d and e %}
, , , .