mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 15:33:22 +00:00
feat: Gestion des inscriptions [#1] feat(frontend): Création des vues pour le paramétrage de l'école [#2] feat: Gestion du login [#6] fix: Correction lors de la migration des modèle [#8] feat: Révision du menu principal [#9] feat: Ajout d'un footer [#10] feat: Création des dockers compose pour les environnements de développement et de production [#12] doc(ci): Mise en place de Husky et d'un suivi de version automatique [#14]
15 lines
455 B
Python
15 lines
455 B
Python
from django.http.response import JsonResponse
|
|
from rest_framework.views import APIView
|
|
|
|
from .models import *
|
|
|
|
from GestionInscriptions.serializers import NotificationSerializer
|
|
|
|
from N3wtSchool import bdd
|
|
|
|
class NotificationView(APIView):
|
|
def get(self, request):
|
|
notifsList=bdd.getAllObjects(Notification)
|
|
notifs_serializer=NotificationSerializer(notifsList, many=True)
|
|
|
|
return JsonResponse(notifs_serializer.data, safe=False) |