Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Commit

Permalink
one more step to django independency
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Jan 3, 2018
1 parent fbc3023 commit d53f1d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djburger/mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d53f1d3

Please sign in to comment.