-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change files structure and import statemets
- Loading branch information
Showing
8 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from hct_mis_api.api.endpoints.core import * # noqa: F401, F403 | ||
from hct_mis_api.api.endpoints.lookups import * # noqa: F401, F403 | ||
from hct_mis_api.api.endpoints.program import * # noqa: F401, F403 | ||
from hct_mis_api.api.endpoints.rdi import * # noqa: F401, F403 |
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
from hct_mis_api.api.endpoints.core.business_area import ( # noqa: F401 | ||
BusinessAreaListView, | ||
) | ||
from hct_mis_api.api.endpoints.core.views import BusinessAreaListView # noqa: F401 |
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
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,10 @@ | ||
from rest_framework.generics import ListAPIView | ||
|
||
from hct_mis_api.api.endpoints.base import HOPEAPIView | ||
from hct_mis_api.api.endpoints.core.serializers import BusinessAreaSerializer | ||
from hct_mis_api.apps.core.models import BusinessArea | ||
|
||
|
||
class BusinessAreaListView(HOPEAPIView, ListAPIView): | ||
serializer_class = BusinessAreaSerializer | ||
queryset = BusinessArea.objects.all() |
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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from hct_mis_api.api.endpoints.program.program import ( # noqa: F401 | ||
ProgramGlobalListView, | ||
) | ||
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
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,10 @@ | ||
from rest_framework.generics import ListAPIView | ||
|
||
from hct_mis_api.api.endpoints.base import HOPEAPIView | ||
from hct_mis_api.api.endpoints.program.serializers import ProgramGlobalSerializer | ||
from hct_mis_api.apps.program.models import Program | ||
|
||
|
||
class ProgramGlobalListView(HOPEAPIView, ListAPIView): | ||
serializer_class = ProgramGlobalSerializer | ||
queryset = Program.objects.all() |
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