diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 1df399b..20da595 100644
a
|
b
|
class ModelAdmin(BaseModelAdmin):
|
467 | 467 | if not self.has_add_permission(request): |
468 | 468 | raise PermissionDenied |
469 | 469 | |
470 | | if self.has_change_permission(request, None): |
471 | | # redirect to list view |
472 | | post_url = '../' |
473 | | else: |
474 | | # Object list will give 'Permission Denied', so go back to admin home |
475 | | post_url = '../../../' |
476 | | |
477 | 470 | ModelForm = self.get_form(request) |
478 | 471 | inline_formsets = [] |
479 | 472 | obj = self.model() |