Skip to content

Commit

Permalink
add feedback report in API v2
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Mar 13, 2024
1 parent 5e0c954 commit c2b1bd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions geotrek/api/v2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
router.register('infrastructure_usage_difficulty_level', api_views.InfrastructureUsageDifficultyLevelViewSet, basename='infrastructure-usage-difficulty')
router.register('infrastructure_maintenance_difficulty_level', api_views.InfrastructureMaintenanceDifficultyLevelViewSet, basename='infrastructure-maintenance-difficulty')
if 'geotrek.feedback' in settings.INSTALLED_APPS:
router.register('feedback_report', api_views.ReportViewSet, basename='feedback-report')
router.register('feedback_status', api_views.ReportStatusViewSet, basename='feedback-status')
router.register('feedback_category', api_views.ReportCategoryViewSet, basename='feedback-category')
router.register('feedback_activity', api_views.ReportActivityViewSet, basename='feedback-activity')
Expand Down
3 changes: 2 additions & 1 deletion geotrek/api/v2/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
if 'geotrek.core' in settings.INSTALLED_APPS:
from .core import PathViewSet # noqa
if 'geotrek.feedback' in settings.INSTALLED_APPS:
from .feedback import ReportStatusViewSet, ReportActivityViewSet, ReportCategoryViewSet, ReportProblemMagnitudeViewSet # noqa
from .feedback import (ReportStatusViewSet, ReportActivityViewSet, ReportCategoryViewSet,
ReportProblemMagnitudeViewSet, ReportViewSet) # noqa
if 'geotrek.trekking' in settings.INSTALLED_APPS:
from .trekking import (TrekViewSet, TourViewSet, POIViewSet, POITypeViewSet, AccessibilityViewSet, RouteViewSet, # noqa
DifficultyViewSet, NetworkViewSet, PracticeViewSet, AccessibilityLevelViewSet, # noqa
Expand Down

0 comments on commit c2b1bd3

Please sign in to comment.