fix route
This commit is contained in:
parent
a0a6e98fa6
commit
121b917096
|
|
@ -7,7 +7,7 @@ app_name = 'comment'
|
|||
|
||||
urlpatterns = [
|
||||
path('', views.CommentLstView.as_view(), name='comment-list-create'),
|
||||
path('<int:id>/', views.CommentRUDView.as_view(), name='comment-crud'),
|
||||
path('<str:type>/', views.CommentLstView.as_view(), name='comment-list-by-type-create'),
|
||||
path('<str:type>/<int:object>', views.CommentLstView.as_view(), name='comment-list-by-type-object-create'),
|
||||
path('<int:id>/', views.CommentRUDView.as_view(), name='comment-crud'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user