feat: Upgrade django-registration to 5.1
This commit is contained in:
parent
ee46ff9cda
commit
c4976c4b34
@ -34,7 +34,7 @@ dependencies = [
|
|||||||
"model_bakery",
|
"model_bakery",
|
||||||
"markdown",
|
"markdown",
|
||||||
"Pillow",
|
"Pillow",
|
||||||
"django-registration<=3.4",
|
"django-registration",
|
||||||
"psycopg2-binary",
|
"psycopg2-binary",
|
||||||
"django-crispy-forms",
|
"django-crispy-forms",
|
||||||
"crispy-bootstrap4",
|
"crispy-bootstrap4",
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{{ site.name }}: {% trans "Account aktivieren" %}
|
{{ site.name }}: {% trans "Account aktivieren" %}
|
||||||
|
|
||||||
|
{% trans 'Hier ist dein Aktivierungs-Key. Mit diesem kannst du deinen Account freischalten.' %}
|
||||||
|
{{ activation_key }}
|
||||||
|
|
||||||
{% trans "Öffne den folgenden link im Browser um deinen Account zu aktivieren" %}:
|
{% trans "Öffne den folgenden link im Browser und gib den Aktivierungs-Key dort ein" %}:
|
||||||
https://{{ site.domain }}{% url 'django_registration_activate' activation_key%}
|
https://{{ site.domain }}{% url 'django_registration_activate' %}
|
||||||
|
|
||||||
{% blocktrans %}Der link ist gültig für {{ expiration_days }} tage.{% endblocktrans %}
|
{% blocktrans %}Der Link ist für {{ expiration_days }} Tage gültig.{% endblocktrans %}
|
15
src/templates/django_registration/activation_form.html
Normal file
15
src/templates/django_registration/activation_form.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{% extends "fellchensammlung/base_generic.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% if not user.is_authenticated %}
|
||||||
|
<form action="" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form.as_p }}
|
||||||
|
<input type="submit" class="btn2" value={% translate 'Absenden' %}>
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<p>{% translate "Du bist bereits eingeloggt." %}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user