Cleaned stuff up

This commit is contained in:
reverend 2020-09-10 18:38:26 +02:00
parent dd266f8cdf
commit c30af40079

View File

@ -17,7 +17,7 @@ class IsAuthenticated(LoginRequiredMixin, View):
If the user is not logged in, he gets redirected to If the user is not logged in, he gets redirected to
the login page. the login page.
''' '''
redirect_field_name = 'redirect_to' login_url = reverse_lazy('login')
permission_denied_message = 'Please login to proceed' permission_denied_message = 'Please login to proceed'
def handle_no_permission(self): def handle_no_permission(self):
@ -83,7 +83,6 @@ class PlaceAssetCreateView(IsAuthenticated, SuccessMessageMixin, CreateView):
class PlaceAssetDeleteView(IsAuthenticated, IsPlaceSubmitter, SingleObjectMixin, View): class PlaceAssetDeleteView(IsAuthenticated, IsPlaceSubmitter, SingleObjectMixin, View):
model = None model = None
pk_url_kwarg = 'pk'
success_message = '' success_message = ''
permission_denied_message = '' permission_denied_message = ''