Upgrade Django to 4
This commit is contained in:
parent
d134c0049d
commit
6febe7db19
937
poetry.lock
generated
937
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ license = "Apache-2.0"
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.8"
|
python = "^3.8"
|
||||||
Django = "^3.2.15"
|
Django = "^4"
|
||||||
django-allauth = "^0.45.0"
|
django-allauth = "^0.45.0"
|
||||||
geoip2 = "^4.2.0"
|
geoip2 = "^4.2.0"
|
||||||
whitenoise = "^5.3.0"
|
whitenoise = "^5.3.0"
|
||||||
|
@ -15,32 +15,32 @@
|
|||||||
|
|
||||||
<ul class="pagination-list w-full md:w-auto mb-2 flex">
|
<ul class="pagination-list w-full md:w-auto mb-2 flex">
|
||||||
{% for pnum in begin %}
|
{% for pnum in begin %}
|
||||||
{% ifequal page.number pnum %}
|
{% if page.number == pnum %}
|
||||||
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
||||||
{% endifequal %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if middle %}
|
{% if middle %}
|
||||||
<li><span class="pagination-ellipsis">…</span></li>
|
<li><span class="pagination-ellipsis">…</span></li>
|
||||||
{% for pnum in middle %}
|
{% for pnum in middle %}
|
||||||
{% ifequal page.number pnum %}
|
{% if page.number == pnum %}
|
||||||
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
||||||
{% endifequal %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if end %}
|
{% if end %}
|
||||||
<li><span class="pagination-ellipsis">…</span></li>
|
<li><span class="pagination-ellipsis">…</span></li>
|
||||||
{% for pnum in end %}
|
{% for pnum in end %}
|
||||||
{% ifequal page.number pnum %}
|
{% if page.number == pnum %}
|
||||||
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
<li><a class="button field !low w-auto mx-1 text-white bg-neutral-700">{{ pnum }}</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
<li><a class="button field !low bg-neutral-000 w-auto mx-1" href="?page={{ pnum }}&{{url_parameters}}">{{ pnum }}</a></li>
|
||||||
{% endifequal %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user