Changed login and signup modals views names
This commit is contained in:
parent
066ebd06e6
commit
0a105ea7ea
@ -12,14 +12,14 @@ from .response import response_mimetype, JsonResponse
|
|||||||
|
|
||||||
class SignUpView(BSModalCreateView):
|
class SignUpView(BSModalCreateView):
|
||||||
form_class = CustomUserCreationForm
|
form_class = CustomUserCreationForm
|
||||||
template_name = 'store/signup.html'
|
template_name = 'store/signup_modal.html'
|
||||||
success_message = 'Success: Sign up succeeded. You can now Log in.'
|
success_message = 'Success: Sign up succeeded. You can now Log in.'
|
||||||
success_url = reverse_lazy('store_front_page')
|
success_url = reverse_lazy('store_front_page')
|
||||||
|
|
||||||
|
|
||||||
class CustomLoginView(BSModalLoginView):
|
class CustomLoginView(BSModalLoginView):
|
||||||
authentication_form = CustomAuthenticationForm
|
authentication_form = CustomAuthenticationForm
|
||||||
template_name = 'store/login.html'
|
template_name = 'store/login_modal.html'
|
||||||
success_message = 'Success: You were successfully logged in.'
|
success_message = 'Success: You were successfully logged in.'
|
||||||
extra_content = dict(success_url=reverse_lazy('index'))
|
extra_content = dict(success_url=reverse_lazy('index'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user