Should be team_slug, not slug (#201)

This commit is contained in:
Víðir Valberg Guðmundsson 2018-03-04 16:34:10 +01:00 committed by Thomas Steen Rasmussen
parent ba3eaa6546
commit f8c86cac31
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class TeamManageView(CampViewMixin, EnsureTeamResponsibleMixin, UpdateView):
slug_url_kwarg = 'team_slug'
def get_success_url(self):
return reverse_lazy('teams:detail', kwargs={'camp_slug': self.camp.slug, 'slug': self.get_object().slug})
return reverse_lazy('teams:detail', kwargs={'camp_slug': self.camp.slug, 'team_slug': self.get_object().slug})
class TeamJoinView(LoginRequiredMixin, CampViewMixin, UpdateView):