From 214d422ee25898171bc76fd67c1c799738198cfc Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 21 Jan 2021 22:51:12 +0100 Subject: [PATCH 1/2] Texlive is missing in the docker image --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0065ffa..124f083 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,7 @@ FROM python:3.8-alpine ENV PYTHONUNBUFFERED 1 ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 -# Install LaTeX requirements -RUN apk add --no-cache gettext nginx gcc libc-dev libffi-dev libxml2-dev libxslt-dev postgresql-dev libmagic +RUN apk add --no-cache gettext nginx gcc libc-dev libffi-dev libxml2-dev libxslt-dev postgresql-dev libmagic texlive RUN apk add --no-cache bash From 0da0165ce28f1fc343d76a4c4fd99658abb730f7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 21 Jan 2021 22:54:23 +0100 Subject: [PATCH 2/2] Admins are superuser --- apps/registration/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/registration/views.py b/apps/registration/views.py index e8c621f..60d7509 100644 --- a/apps/registration/views.py +++ b/apps/registration/views.py @@ -136,6 +136,10 @@ class AddOrganizerView(VolunteerMixin, CreateView): domain=site.domain)) registration.user.email_user(subject, message, html_message=html) + if registration.is_admin: + registration.user.is_superuser = True + registration.user.save() + return ret def get_success_url(self):