simplify urls and customflatpages

This commit is contained in:
2022-04-19 15:16:56 +00:00
parent 5804b77c4f
commit 1f33c8165e
13 changed files with 70 additions and 63 deletions

View File

@@ -1,5 +1,6 @@
{% extends 'base.html' %}
{% load flatpages %}
{% load softhyphen_tags %}
{% load static %}
@@ -71,9 +72,10 @@
</li>
{% endif %}
{% if fs_info %}
{% get_flatpages '/fachschaft/' as pages %}
{% if pages %}
<li class="internalLI">
<a href="{% url 'admin:core_customflatpage_change' fs_info.id %}">
<a href="{% url 'admin:core_customflatpage_change' pages.first.id %}">
<i class="fa-regular fa-pen-to-square mr-1"></i>Fachschaft-Text bearbeiten
</a>
</li>