aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/generics.py
diff options
context:
space:
mode:
authorTom Christie2013-06-05 13:45:28 +0100
committerTom Christie2013-06-05 13:45:28 +0100
commitf8a0d31d71bf722741a472c27ae0a10ecbcbcec3 (patch)
treea8cb76dbb0c62b17b779c0ee6ec68f334794821d /rest_framework/generics.py
parent2ca243a1144bb2a5461767a21ed14dec1d2b8dc2 (diff)
downloaddjango-rest-framework-f8a0d31d71bf722741a472c27ae0a10ecbcbcec3.tar.bz2
Remove ConfigurationError in favor of Django's ImproperlyConfigured
Diffstat (limited to 'rest_framework/generics.py')
-rw-r--r--rest_framework/generics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py
index 9ccc7898..80efad01 100644
--- a/rest_framework/generics.py
+++ b/rest_framework/generics.py
@@ -285,7 +285,7 @@ class GenericAPIView(views.APIView):
)
filter_kwargs = {self.slug_field: slug}
else:
- raise exceptions.ConfigurationError(
+ raise ImproperlyConfigured(
'Expected view %s to be called with a URL keyword argument '
'named "%s". Fix your URL conf, or set the `.lookup_field` '
'attribute on the view correctly.' %