Добавил формы создания и пофиксил баг с пользователями

This commit is contained in:
2025-11-24 23:47:00 +03:00
parent 1c18ae96f7
commit 7879c3d9b5
19 changed files with 448 additions and 183 deletions

View File

@@ -41,6 +41,7 @@ from .views import (
ShowSourceWithPointsMapView,
ShowSourceAveragingStepsMapView,
SourceListView,
SourceCreateView,
SourceUpdateView,
SourceDeleteView,
SourceObjItemsAPIView,
@@ -64,6 +65,7 @@ urlpatterns = [
path('home/', RedirectView.as_view(pattern_name='mainapp:source_list', permanent=True), name='home_redirect'),
# Keep /sources/ as an alias (Requirement 1.2)
path('sources/', SourceListView.as_view(), name='source_list'),
path('source/create/', SourceCreateView.as_view(), name='source_create'),
path('source/<int:pk>/edit/', SourceUpdateView.as_view(), name='source_update'),
path('source/<int:pk>/delete/', SourceDeleteView.as_view(), name='source_delete'),
path('delete-selected-sources/', DeleteSelectedSourcesView.as_view(), name='delete_selected_sources'),