summaryrefslogtreecommitdiff
path: root/app/posts/note_urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-07-19 15:50:29 -0500
committerluxagraf <sng@luxagraf.net>2023-07-19 15:50:29 -0500
commita22d349573d60564e582b9a314c9463385d03dac (patch)
treea8bb9d9d6e3edbb75e454539cd7cd7caab7e0744 /app/posts/note_urls.py
parent46ecd030e8d2b68f155c6f8d2d4ad653500391c6 (diff)
posts: made create and update forms for notes
Diffstat (limited to 'app/posts/note_urls.py')
-rw-r--r--app/posts/note_urls.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/posts/note_urls.py b/app/posts/note_urls.py
new file mode 100644
index 0000000..4bf6914
--- /dev/null
+++ b/app/posts/note_urls.py
@@ -0,0 +1,23 @@
+from django.urls import path, re_path
+
+from . import views
+
+app_name = "notes"
+
+urlpatterns = [
+ path(
+ r'',
+ views.NoteCreateView.as_view(),
+ name="create"
+ ),
+ path(
+ r'<pk>/edit',
+ views.NoteUpdateView.as_view(),
+ name="edit"
+ ),
+ path(
+ r'<pk>/notes',
+ views.PostNotesView.as_view(),
+ name="detail"
+ ),
+]