Add dev tool for quickly switching profile settings

This commit is contained in:
Sascha Ißbrücker
2026-01-10 14:21:23 +01:00
parent c998dd35b7
commit d52caefe2c
6 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{% load shared %}
{% if debug and request.user.is_authenticated %}
{{ request.user.profile|model_to_dict|json_script:"json_profile" }}
<ld-dev-tool id="dev-tool"
data-csrf-token="{{ csrf_token }}"
data-form-action="{% url 'linkding:settings.update' %}"
data-turbo-permanent>
</ld-dev-tool>
{% endif %}