diff options
| author | Marko Tibold | 2012-03-27 23:40:33 +0200 |
|---|---|---|
| committer | Marko Tibold | 2012-03-27 23:40:33 +0200 |
| commit | e53c819cc7a5567f2c29375550e9ff62ec20d472 (patch) | |
| tree | 68400a554f037dfd350825ddb908716d8e8fe0e8 | |
| parent | 55317b03725dcfba5c3fd5b06b7c507fff69ff13 (diff) | |
| download | django-rest-framework-e53c819cc7a5567f2c29375550e9ff62ec20d472.tar.bz2 | |
Fix broken pygments test.
| -rw-r--r-- | examples/pygments_api/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pygments_api/views.py b/examples/pygments_api/views.py index 3dd55115..f41fa739 100644 --- a/examples/pygments_api/views.py +++ b/examples/pygments_api/views.py @@ -65,7 +65,7 @@ class PygmentsRoot(View): Return a list of all currently existing snippets. """ unique_ids = [os.path.split(f)[1] for f in list_dir_sorted_by_ctime(HIGHLIGHTED_CODE_DIR)] - return [reverse('pygments-instance', request, args=[unique_id]) for unique_id in unique_ids] + return [reverse('pygments-instance', request=request, args=[unique_id]) for unique_id in unique_ids] def post(self, request): """ @@ -85,7 +85,7 @@ class PygmentsRoot(View): remove_oldest_files(HIGHLIGHTED_CODE_DIR, MAX_FILES) - return Response(status.HTTP_201_CREATED, headers={'Location': reverse('pygments-instance', request, args=[unique_id])}) + return Response(status.HTTP_201_CREATED, headers={'Location': reverse('pygments-instance', request=request, args=[unique_id])}) class PygmentsInstance(View): |
