mirror of
https://github.com/lemeow125/Django-NotesApp.git
synced 2025-05-16 11:38:11 +08:00
Switch to production to prepare for deployment and merge to master
This commit is contained in:
parent
390040d460
commit
0e02573e9f
2 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,7 @@ from .models import Note
|
|||
|
||||
|
||||
class NoteViewSet(viewsets.ModelViewSet):
|
||||
# permission_classes = [IsAuthenticated]
|
||||
permission_classes = [IsAuthenticated]
|
||||
serializer_class = NoteSerializer
|
||||
queryset = Note.objects.all()
|
||||
|
||||
|
@ -19,6 +19,5 @@ class NoteViewSet(viewsets.ModelViewSet):
|
|||
|
||||
|
||||
class PublicNoteViewSet(generics.ListAPIView):
|
||||
# permission_classes = [IsAuthenticated]
|
||||
serializer_class = NoteSerializer
|
||||
queryset = Note.objects.filter(public=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue