Skip to content

Commit

Permalink
Specify templates explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamu committed Jan 20, 2018
1 parent bb46269 commit d8dde5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pinax/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class TeamCreateView(LoginRequiredMixin, CreateView):

form_class = TeamForm
model = Team
template_name = "pinax/teams/team_form.html"

def form_valid(self, form):
self.object = form.save(commit=False)
Expand All @@ -63,6 +64,7 @@ class TeamListView(ListView):

model = Team
context_object_name = "teams"
template_name = "pinax/teams/team_list.html"


@team_required
Expand Down

0 comments on commit d8dde5a

Please sign in to comment.