Commit ba05c61ced2659d71a1beb4f0c3c2e20ebfef21b
1 parent
813ca198
Exists in
master
and in
39 other branches
Redirecting to profile after updating subscription
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/accounts/views.py
@@ -135,7 +135,7 @@ class ManageUserSubscriptionsView(UserProfileBaseMixin, DetailView): | @@ -135,7 +135,7 @@ class ManageUserSubscriptionsView(UserProfileBaseMixin, DetailView): | ||
135 | lists = self.request.POST.getlist(email) | 135 | lists = self.request.POST.getlist(email) |
136 | user.update_subscription(email, lists) | 136 | user.update_subscription(email, lists) |
137 | 137 | ||
138 | - return self.get(request, *args, **kwargs) | 138 | + return redirect('user_profile', username=user.username) |
139 | 139 | ||
140 | def get_context_data(self, **kwargs): | 140 | def get_context_data(self, **kwargs): |
141 | context = {} | 141 | context = {} |