diff --git a/djangoldp/tests/runner.py b/djangoldp/tests/runner.py index 47fcb93e95edb31b3cb934084b3f5684ff40f6d3..2f2958ca2155c5c281a673898d0b91008a32c132 100644 --- a/djangoldp/tests/runner.py +++ b/djangoldp/tests/runner.py @@ -60,7 +60,8 @@ failures = test_runner.run_tests([ 'djangoldp.tests.tests_update', 'djangoldp.tests.tests_auto_author', # 'djangoldp.tests.tests_temp' - 'djangoldp.tests.tests_get' + 'djangoldp.tests.tests_get', + 'djangoldp.tests.tests_delete' ]) if failures: sys.exit(failures) diff --git a/djangoldp/views.py b/djangoldp/views.py index 51cfd4537fd09b713a8ca37f81bab3e3d0706398..5c68bc299dfd4f9ba9ce581f226b3f261730e42b 100644 --- a/djangoldp/views.py +++ b/djangoldp/views.py @@ -22,7 +22,8 @@ class JSONLDRenderer(JSONRenderer): media_type = 'application/ld+json' def render(self, data, accepted_media_type=None, renderer_context=None): - data["@context"] = settings.LDP_RDF_CONTEXT + if data is not None: + data["@context"] = settings.LDP_RDF_CONTEXT return super(JSONLDRenderer, self).render(data, accepted_media_type, renderer_context)