Commit 5bf05768 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added EventUpdateView in urls.py

parent 7d0e190a
from django.urls import path from django.urls import path
from . import views from . import views
from .views import (EventDetailView, EventCreateView) from .views import (EventDetailView, EventCreateView, EventUpdateView)
urlpatterns = [ urlpatterns = [
path('', views.Calendar, name=''), path('', views.Calendar, name=''),
path('events/<int:pk>/details/', EventDetailView.as_view(), name='event-details'), path('events/<int:pk>/details/', EventDetailView.as_view(), name='event-details'),
path('events/add', EventCreateView.as_view(), name='event-add'), path('events/add', EventCreateView.as_view(), name='event-add'),
path('events/<int:pk>/edit', EventUpdateView.as_view(), name='event-edit'),
] ]
\ 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