mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 18:22:23 +00:00
Merge branch 'dev' into 'master'
Fix latex and admins See merge request animath/si/plateforme-tfjm!6
This commit is contained in:
commit
75db278a97
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user