Commit 4b9c204e authored by John Red Medrano's avatar John Red Medrano

added filterset on application endpoint

parent 80f1366b
......@@ -9,13 +9,22 @@ from api.utils import (
CustomPagination, BadRequestException,
status_message_response, number_generator, tbl_ordering
)
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.filters import SearchFilter
from django_filters import rest_framework as filters
AUTHENTICATOR_GROUP = settings.AUTHENTICATOR_GROUP
class CompanyFilterSet(filters.FilterSet):
class Meta:
model = Application
fields = ('__all__')
class ApplicationViewSet(viewsets.ModelViewSet):
http_method_names = [
'get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment