-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
778d644
commit cc15a5b
Showing
5 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from rest_framework import serializers | ||
from apps.applications.models import Application | ||
|
||
|
||
class ApplicationsListSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Application | ||
fields = "__all__" | ||
|
||
|
||
__all__ = ("ApplicationsListSerializer",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from rest_framework.generics import ListAPIView | ||
from rest_framework.permissions import IsAuthenticated | ||
|
||
from apps.applications.api.ApplicationsList.serializers import ( | ||
ApplicationsListSerializer, | ||
) | ||
from apps.applications.models import Application | ||
|
||
|
||
class ApplicationsListAPIView(ListAPIView): | ||
permission_classes = (IsAuthenticated,) | ||
serializer_class = ApplicationsListSerializer | ||
queryset = Application.objects.all() | ||
|
||
|
||
__all__ = ("ApplicationsListAPIView",) |
Empty file.
Empty file.