Commit 7e9fa290 authored by Nicolas Joyard's avatar Nicolas Joyard

Remove views (don't belong in this project)

parent 7cc4b1b7
from django.conf import settings
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'
),
]
if 'dal_select2' in settings.INSTALLED_APPS:
from autocompletes import ( # noqa
DossierAutocomplete,
ProposalAutocomplete,
)
urlpatterns += [
url(
'^autocomplete/dossier/$',
DossierAutocomplete.as_view(),
name='dossier-autocomplete',
),
url(
'^autocomplete/proposal/$',
ProposalAutocomplete.as_view(),
name='proposal-autocomplete',
),
]
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