Commit a47940fc authored by Jamesie Pic's avatar Jamesie Pic

Added basic dossier detail and list urls

parent 11506b17
from django.conf.urls import url
import views
urlpatterns = [
url(
r'^dossier/(?P<pk>\d+)/$',
views.DossierDetail.as_view(),
name='dossier-detail'
),
url(
r'dossier/$',
views.DossierList.as_view(),
name='dossier-list'
),
]
from django.views import generic
from .models import Dossier
class DossierList(generic.ListView):
model = Dossier
class DossierDetail(generic.DetailView):
model = Dossier
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