mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
Call out removal of pre_save/post_save more strongly
This commit is contained in:
parent
c01c631ef2
commit
0f5338ada9
|
@ -190,6 +190,8 @@ These override points are also particularly useful for adding behavior that occu
|
|||
instance = serializer.save()
|
||||
send_email_confirmation(user=self.request.user, modified=instance)
|
||||
|
||||
**Note**: These methods replace the old-style version 2.x `pre_save`, `post_save`, `pre_delete` and `post_delete` methods, which are no longer available.
|
||||
|
||||
**Other methods**:
|
||||
|
||||
You won't typically need to override the following methods, although you might need to call into them if you're writing custom views using `GenericAPIView`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user