Commit cbacbdd6 authored by Ciella Francisco's avatar Ciella Francisco 😵

Edited URLs to enable deletion of images for Promo

parent 90a82479
from django.urls import path from django.urls import path
from .views import EventListView, EventDetailView, EventCreateView, EventUpdateView from .views import EventListView, EventDetailView, EventCreateView, EventUpdateView, delete_image
urlpatterns = [ urlpatterns = [
path('', EventListView.as_view(), name='event-list'), path('', EventListView.as_view(), name='event-list'),
path('<int:pk>/details', EventDetailView.as_view(), name='event-details'), path('<int:pk>/details', EventDetailView.as_view(), name='event-details'),
path('add/', EventCreateView.as_view(), name='event-create'), path('add/', EventCreateView.as_view(), name='event-create'),
path('<int:pk>/update', EventUpdateView.as_view(), name='event-update'), path('<int:pk>/update', EventUpdateView.as_view(), name='event-update'),
path('int<pk>/delete-image', delete_image, name='delete_image'),
] ]
app_name = "event_management" app_name = "event_management"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment