Skip to content

Commit

Permalink
Merge 088466a into a26cc78
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-gaia committed Jun 27, 2017
2 parents a26cc78 + 088466a commit 2d61410
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wildlifelicensing/apps/returns/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from wildlifelicensing.apps.returns.api import views

urlpatterns = [
url(r'data/(?P<return_type_pk>[0-9])/(?P<resource_number>[0-9]?)/?', views.ReturnsDataView.as_view(),
url(r'data/(?P<return_type_pk>[0-9]+)/(?P<resource_number>[0-9]+)/?', views.ReturnsDataView.as_view(),
name='data'),
url(r'', views.ExplorerView.as_view(), name='explorer')
]
2 changes: 1 addition & 1 deletion wildlifelicensing/apps/returns/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ExplorerView(APIUserRequiredMixin, View):
(@see ReturnsDataView view)
"""

def get(self, request):
def get(self, request, *args, **kwargs):
queryset = ReturnType.objects.all()
# for API purpose, increase the session timeout
set_api_session_timeout(request)
Expand Down

0 comments on commit 2d61410

Please sign in to comment.