Browse Source

Fixed typo in BaseModelAdmin.has_delete_permission()'s docstring.

Marco Marra 2 years ago
parent
commit
41e8931c2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      django/contrib/admin/options.py

+ 1 - 1
django/contrib/admin/options.py

@@ -561,7 +561,7 @@ class BaseModelAdmin(metaclass=forms.MediaDefiningClass):
 
     def has_delete_permission(self, request, obj=None):
         """
-        Return True if the given request has permission to change the given
+        Return True if the given request has permission to delete the given
         Django model instance, the default implementation doesn't examine the
         `obj` parameter.