Don't raise AttributeError on views with no model or queryset, when using DjangoModelPermissions