Skip to content

Commit

Permalink
Update django docs
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Dec 30, 2018
1 parent 4f4002c commit 710a4ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/django/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,12 @@ Add a permission to a user/group during a django migration
]
Django rest DjangoModelPermissions

* ``GET`` requests require the user to have the ``view`` permission on the model.
* ``POST`` requests require the user to have the ``add`` permission on the model.
* ``PUT`` and ``PATCH`` requests require the user to have the ``change`` permission on the model.
* ``DELETE`` requests require the user to have the ``delete`` permission on the model.

https://www.django-rest-framework.org/api-guide/permissions/#djangomodelpermissions

0 comments on commit 710a4ac

Please sign in to comment.