Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed old instance check

  • Loading branch information...
commit 91de4ae172a5de44288c23171d6fcc320b391211 1 parent 6e46bcc
@bfirsh authored
Showing with 0 additions and 9 deletions.
  1. +0 −9 class_based_views/base.py
View
9 class_based_views/base.py
@@ -159,15 +159,6 @@ def get_context_processors(self):
"""
return self.context_processors
- def _check_has_been_called(self):
- if self._has_been_called:
- raise ImproperlyConfigured("'%(class)s' has been instantiated in "
- "the URLconf. Class-based views should only be passed as "
- "classes. Try changing '%(class)s()' to '%(class)s'." % {
- 'class': self.__class__.__name__
- })
- self._has_been_called = True
-
def _load_config_values(self, initkwargs, **defaults):
"""
Set on self some config values possibly taken from __init__, or
Please sign in to comment.
Something went wrong with that request. Please try again.