mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix reddit views
This commit is contained in:
@@ -20,7 +20,7 @@ class RedditAddAccount(CreateView):
|
|||||||
form_class = RedditAccountForm
|
form_class = RedditAccountForm
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
return reverse('sso.views.profile')
|
return reverse('sso-profile')
|
||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
initial = super(RedditAddAccount, self).get_initial()
|
initial = super(RedditAddAccount, self).get_initial()
|
||||||
@@ -52,7 +52,7 @@ class RedditDeleteAccount(DeleteView):
|
|||||||
context_object_name = 'account'
|
context_object_name = 'account'
|
||||||
|
|
||||||
def get_success_url(self):
|
def get_success_url(self):
|
||||||
return reverse('sso.views.profile')
|
return reverse('sso-profile')
|
||||||
|
|
||||||
def delete(self, request, *args, **kwargs):
|
def delete(self, request, *args, **kwargs):
|
||||||
self.object = self.get_object()
|
self.object = self.get_object()
|
||||||
|
|||||||
Reference in New Issue
Block a user