From d53f1d363df88b1d14d5f2b3ea7bf6725394986f Mon Sep 17 00:00:00 2001 From: orsinium Date: Wed, 3 Jan 2018 19:39:19 +0500 Subject: [PATCH] one more step to django independency --- djburger/mocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djburger/mocks.py b/djburger/mocks.py index 68c9213..90e6542 100644 --- a/djburger/mocks.py +++ b/djburger/mocks.py @@ -33,10 +33,10 @@ class ValidationError(Exception): class DjangoView(object): - def __init__(self, **kwargs): + def as_view(self, **kwargs): raise ImportError( "Django is not installed yet. " - "Please, install Django or make your own init for ViewBase." + "Please, install Django or make your own as_view method for ViewBase." ) def __call__(self, *args, **kwargs):