<filename>app/grandchallenge/emails/urls.py
from django.urls import path

from grandchallenge.emails.views import (
    EmailCreate,
    EmailDetail,
    EmailList,
    EmailUpdate,
)

app_name = "emails"

urlpatterns = [
    path("", EmailList.as_view(), name="list"),
    path("create/", EmailCreate.as_view(), name="create"),
    path("<int:pk>/", EmailDetail.as_view(), name="detail"),
    path("<int:pk>/update/", EmailUpdate.as_view(), name="update"),
]

<filename>app/grandchallenge/emails/urls.py
from django.urls import path

from grandchallenge.emails.views import (
    EmailCreate,
    EmailDetail,
    EmailList,
    EmailUpdate,
)

app_name = "emails"

urlpatterns = [
    path("", EmailList.as_view(), name="list"),
    path("create/", EmailCreate.as_view(), name="create"),
    path("<int:pk>/", EmailDetail.as_view(), name="detail"),
    path("<int:pk>/update/", EmailUpdate.as_view(), name="update"),
]
