application api queryset
This commit is contained in:
parent
c34c449de3
commit
ddddbf8c24
1 changed files with 4 additions and 3 deletions
|
|
@ -18,9 +18,10 @@ class ApplicationViewSet(ReadOnlyModelViewSet):
|
|||
required_alternate_scopes = {
|
||||
"GET": [['accounts.applications:list_or_retrieve']],
|
||||
}
|
||||
# def get_queryset(self):
|
||||
# user = self.request.user
|
||||
# return Application.objects.filter(user=user).all()
|
||||
def get_queryset(self):
|
||||
# user = self.request.user
|
||||
# return Application.objects.filter(user=user).all()
|
||||
return Application.objects.filter().all()
|
||||
|
||||
@action(detail=True, permission_classes=[AllowAny])
|
||||
def avatar(self, request, pk=None):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue