I need to set optional parameters using Django. I try a method saw on Stack Overflow but it didn't work.
My code :
views.py :
def get(self, request, id_document, optional_parameters = 'owner'):
#code here
urls.py :
url(r'^getdoclist/(?P<id_document>[^/]+)/$', Get_DocumentList.as_view()),
url(r'^getdoclist/(?P<id_document>[^/]+)/(?P<owner>[^/]+)/$', Get_DocumentList.as_view()),
it didn't work using this method :(
Thanks if you could help me