aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/generics.py
diff options
context:
space:
mode:
authorTom Christie2014-09-05 16:29:46 +0100
committerTom Christie2014-09-05 16:29:46 +0100
commitd934824bff21e4a11226af61efba319be227f4f0 (patch)
treeb5c856cc1fdb9245bfa59db450fc2c228835e3b9 /rest_framework/generics.py
parentc1036c17533a3091401ff90f825571f0e6125eca (diff)
downloaddjango-rest-framework-d934824bff21e4a11226af61efba319be227f4f0.tar.bz2
Workin on
Diffstat (limited to 'rest_framework/generics.py')
-rw-r--r--rest_framework/generics.py30
1 files changed, 1 insertions, 29 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py
index 6705cbb2..c2c59154 100644
--- a/rest_framework/generics.py
+++ b/rest_framework/generics.py
@@ -27,7 +27,7 @@ def strict_positive_int(integer_string, cutoff=None):
def get_object_or_404(queryset, *filter_args, **filter_kwargs):
"""
- Same as Django's standard shortcut, but make sure to raise 404
+ Same as Django's standard shortcut, but make sure to also raise 404
if the filter_kwargs don't match the required types.
"""
try:
@@ -249,34 +249,6 @@ class GenericAPIView(views.APIView):
#
# The are not called by GenericAPIView directly,
# but are used by the mixin methods.
-
- def pre_save(self, obj):
- """
- Placeholder method for calling before saving an object.
-
- May be used to set attributes on the object that are implicit
- in either the request, or the url.
- """
- pass
-
- def post_save(self, obj, created=False):
- """
- Placeholder method for calling after saving an object.
- """
- pass
-
- def pre_delete(self, obj):
- """
- Placeholder method for calling before deleting an object.
- """
- pass
-
- def post_delete(self, obj):
- """
- Placeholder method for calling after deleting an object.
- """
- pass
-
def metadata(self, request):
"""
Return a dictionary of metadata about the view.