devfund-website/blender_notes/urls.py
Sybren A. Stüvel 375cab6e6e Added notes system for the admin
Notes can now be added to *any* model in the admin. Deletion is
immediate and irreversible.

The following permissions can be granted to users/groups:
    - blender_notes.add_note
    - blender_notes.change_note
    - blender_notes.delete_note
    - blender_notes.view_note

WARNING: a user with view_note permissions can view *ALL* notes. There
is no model-level access. In other words, even when someone cannot see
Memberships, they can read ALL notes on ALL Memberships.
2018-09-18 16:31:58 +02:00

12 lines
333 B
Python

from django.urls import path
from . import views
app_name = 'notes'
urlpatterns = [
path('<app_label>/<model_name>/<int:object_id>',
views.NotesView.as_view(), name='for-object'),
path('delete/<app_label>/<model_name>/<int:object_id>/<int:note_id>',
views.DeleteNoteView.as_view(), name='delete-note'),
]