diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index ec32c89..0989600 100644
a
|
b
|
class ModelAdmin(BaseModelAdmin):
|
246 | 246 | # Delegate to the appropriate method, based on the URL. |
247 | 247 | if url is None: |
248 | 248 | return self.changelist_view(request) |
249 | | elif url.endswith('add'): |
| 249 | elif url == 'add': |
250 | 250 | return self.add_view(request) |
251 | | elif url.endswith('history'): |
| 251 | elif url.endswith('/history'): |
252 | 252 | return self.history_view(request, unquote(url[:-8])) |
253 | | elif url.endswith('delete'): |
| 253 | elif url.endswith('/delete'): |
254 | 254 | return self.delete_view(request, unquote(url[:-7])) |
255 | 255 | else: |
256 | 256 | return self.change_view(request, unquote(url)) |