Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed warning for settings.ADMIN_FOR which has been removed.

refs #21386.
  • Loading branch information...
commit cb47969cd7271749393998a21bc8c467088d6235 1 parent 797d742
@timgraham timgraham authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 django/contrib/admindocs/views.py
View
7 django/contrib/admindocs/views.py
@@ -2,7 +2,6 @@
import inspect
import os
import re
-import warnings
from django import template
from django.apps import apps
@@ -15,7 +14,6 @@
from django.core import urlresolvers
from django.contrib.admindocs import utils
from django.utils.decorators import method_decorator
-from django.utils.deprecation import RemovedInDjango18Warning
from django.utils._os import upath
from django.utils import six
from django.utils.translation import ugettext as _
@@ -24,11 +22,6 @@
# Exclude methods starting with these strings from documentation
MODEL_METHODS_EXCLUDE = ('_', 'add_', 'delete', 'save', 'set_')
-if getattr(settings, 'ADMIN_FOR', None):
- warnings.warn('The ADMIN_FOR setting has been removed, you can remove '
- 'this setting from your configuration.', RemovedInDjango18Warning,
- stacklevel=2)
-
class BaseAdminDocsView(TemplateView):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.