Blog
{% for object in object_list %}
{% if object.mediafilecontent_set.all.0.mediafile.type == 'image' %}
{% else %}
{{ object.published_on|date:"SHORT_DATE_FORMAT" }} | {{ object.title }}
{{ object.richtextcontent_set.all.0.render }}
{% if object.richtextcontent_set.all.1 %}
{% trans 'more...' %}
{% endif %}
{% endif %}
{% if not forloop.last %}
{% endif %}
{% endfor %}
{% if page_obj.has_other_pages %}
{% if object.mediafilecontent_set.all.0.mediafile.type == 'image' %}
|
{{ object.published_on|date:"SHORT_DATE_FORMAT" }} | {{ object.title }} {{ object.richtextcontent_set.all.0.render }} {% if object.richtextcontent_set.all.1 %} {% trans 'more...' %} {% endif %} |
{% trans 'Page' %} {{ page_obj.number }} {% trans 'of' %} {{ page_obj.paginator.num_pages }}.
{% if page_obj.has_previous %}
{% trans 'previous' %}
{% endif %}
{% if page_obj.has_next %}
{% trans 'next' %}
{% endif %}
{% endif %}