Fixed typo in django/contrib/admin/options.py comment.

This commit is contained in:
Ikko Ashimine 2022-07-25 14:19:52 +09:00 committed by GitHub
parent 3b79dab19a
commit 85df081add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1690,7 +1690,7 @@ class ModelAdmin(BaseModelAdmin):
has_change_permission = inline.has_change_permission(request, obj) has_change_permission = inline.has_change_permission(request, obj)
has_delete_permission = inline.has_delete_permission(request, obj) has_delete_permission = inline.has_delete_permission(request, obj)
else: else:
# Disable all edit-permissions, and overide formset settings. # Disable all edit-permissions, and override formset settings.
has_add_permission = ( has_add_permission = (
has_change_permission has_change_permission
) = has_delete_permission = False ) = has_delete_permission = False