Skip to content
Snippets Groups Projects
Unverified Commit 282e84e4 authored by Arthur Guédon's avatar Arthur Guédon Committed by GitHub
Browse files

Info form (#23)


* Password reset feature (#8)

* Add Django Rest auth module

* Try to make the send reset password email work

* Modified template mail for reset

* Add Django Rest auth module

* Try to make the send reset password email work

* Modified template mail for reset

* test

* Ajouté API student

* API GET sans authentification

* Added POST support

* POST API fix

* Fixed charfields length in wiki

* loosen security

* simplify API serialized data

* Implemented partial_update

* Added special teaching and nationality to serializer

* dependantsNumber to int

* Fixed factory imports

* Added write auth and minor serializer fix

* Added read permissions

* Read permissions that work?

* Actually added read permissions?

* Updated tests to pass travis

* Updated tests

* Fixed all factory tests

* Adapté les tests à la nouvelle structure de Student

* Created StaffUserFactory and finished fixing tests

* Update README.md

* Added classType

* Fixed migrations

* Added last modified year & filters in admin interface

* Email notification

* fixed email

Co-authored-by: default avatarchiahetcho <44137047+chiahetcho@users.noreply.github.com>
Co-authored-by: default avatarflorimondmanca <florimond.manca@gmail.com>
Co-authored-by: default avatarDylan Sechet <dylan.sechet@student-cs.fr>
Co-authored-by: default avatarDylan Sechet <dylan.sechet82@gmail.com>
Co-authored-by: default avatarSeon82 <46298009+Seon82@users.noreply.github.com>
parent 1dd70188
Branches
No related tags found
No related merge requests found
......@@ -5,3 +5,4 @@ from .dev import *
# Allow to send emails with SendGrid while in DEBUG mode.
# See: https://github.com/sklarsa/django-sendgrid-v5#other-settings
SENDGRID_SANDBOX_MODE_IN_DEBUG = False
......@@ -5,7 +5,6 @@ from django.shortcuts import reverse
from dry_rest_permissions.generics import authenticated_users
from .utils import get_promotion_range
from datetime import datetime
from .notifications import SendDocs
......@@ -192,7 +191,7 @@ class Student(ProfileMixin, models.Model):
else:
self.year = f"{date_now.year-1}/{date_now.year}"
SendDocs().send() # send email with link to registration docs
SendDocs(user=self.user).send() # send email with link to registration docs
return super(Student,self).save(*args, **kwargs)
......
......@@ -3,4 +3,9 @@ from mails import Notification
class SendDocs(Notification):
"""Sends a link to the google docs containing the registration documents"""
subject = "Dossier d'inscription OSER"
template_name = "profiles/registration_docs.md"
args = ('user',)
def get_recipients(self):
return [self.user.email]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment