E2EE template tags

Template tags for the django-e2ee-framework.

Functions:

e2ee_enabled(session)

Test if a session has e2e enabled.

e2ee_ignored(session)

Test if a session has e2e enabled.

get_password_create_form()

get_session_key(session)

Get the e2ee.SessionKey for a session.

get_session_key_form(context, session_key)

Get a form to enable the session verification.

get_session_keys(context)

has_session_key(session)

Test if a session has e2e enabled.

django_e2ee.templatetags.e2ee.e2ee_enabled(session: Union[str, SessionStore, Session]) bool

Test if a session has e2e enabled.

django_e2ee.templatetags.e2ee.e2ee_ignored(session: Union[str, SessionStore, Session]) bool

Test if a session has e2e enabled.

django_e2ee.templatetags.e2ee.get_password_create_form()
django_e2ee.templatetags.e2ee.get_session_key(session: Union[str, SessionStore, Session]) Optional[models.SessionKey]

Get the e2ee.SessionKey for a session.

django_e2ee.templatetags.e2ee.get_session_key_form(context, session_key) E2EESessionForm

Get a form to enable the session verification.

django_e2ee.templatetags.e2ee.get_session_keys(context) QuerySet[models.SessionKey]
django_e2ee.templatetags.e2ee.has_session_key(session: Union[str, SessionStore, Session]) bool

Test if a session has e2e enabled.