Commit ba05c61ced2659d71a1beb4f0c3c2e20ebfef21b

Authored by Sergio Oliveira
1 parent 813ca198

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 135 lists = self.request.POST.getlist(email)
136 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 140 def get_context_data(self, **kwargs):
141 141 context = {}
... ...