-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[*] Changing the creation of a project R: Implementation according to…
… the requirements FB: Refactored the creation project and other code.
- Loading branch information
Showing
33 changed files
with
3,375 additions
and
781 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
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,5 @@ | ||
from django.urls import include, path | ||
|
||
urlpatterns = [ | ||
path("v1/", include("api.v1.urls")), | ||
] |
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
from django.urls import path | ||
from django.urls import include, path | ||
from rest_framework.routers import DefaultRouter | ||
|
||
from api.v1.general.views import CounterApiView, SectionViewSet | ||
from api.v1.general.views import ( | ||
CounterApiView, | ||
SectionViewSet, | ||
SkillViewSet, | ||
SpecialistViewSet, | ||
) | ||
|
||
router = DefaultRouter() | ||
router.register("specialists", SpecialistViewSet, basename="specialists") | ||
router.register("skills", SkillViewSet, basename="skills") | ||
|
||
urlpatterns = [ | ||
path("section", SectionViewSet.as_view({"get": "list"})), | ||
path("counter", CounterApiView.as_view()), | ||
path("section/", SectionViewSet.as_view({"get": "list"})), | ||
path("counter/", CounterApiView.as_view()), | ||
path("", include(router.urls)), | ||
] |
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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
PROJECT_PREVIEW_MAIN_PAGE_SIZE = 6 | ||
PROJECT_PAGE_SIZE = 7 | ||
MAX_PAGE_SIZE = 100 | ||
PROJECT_PREVIEW_MAIN_FIELDS = ( | ||
"id", | ||
"name", | ||
"started", | ||
"ended", | ||
"direction", | ||
) |
Oops, something went wrong.