diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-08-12 07:51:23 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-08-17 11:13:06 -0400 |
| commit | 09ee3b6fe3c4d80bb445835f88148d6f48cde3ff (patch) | |
| tree | a90078f0af304d397297006e787811dd28192729 /django | |
| parent | 57f16655cd5031ef04bf5e310c9e1d31eff912ce (diff) | |
Fixed #29663 -- Made admin change view redirect to changelist with view permission.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index d1071ebb2a..474c4226f8 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -1324,7 +1324,7 @@ class ModelAdmin(BaseModelAdmin): def _response_post_save(self, request, obj): opts = self.model._meta - if self.has_change_permission(request, None): + if self.has_view_or_change_permission(request): post_url = reverse('admin:%s_%s_changelist' % (opts.app_label, opts.model_name), current_app=self.admin_site.name) |
