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 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):