class ItemCreateView(CreateView):
model = Item
fields = ['title', 'description', 'image', 'price']
def get(self, request):
if not request.user.is_staff:
raise PermissionDenied
super() #???????????
def get(self, request, **kwargs):
if not request.user.is_staff:
raise PermissionDenied
super().get(request, **kwargs)