Skip to content

Commit

Permalink
Merge pull request #59 from pinax/explicit-view-templates
Browse files Browse the repository at this point in the history
Specify template locations
  • Loading branch information
grahamu authored Jan 20, 2018
2 parents bb46269 + d8dde5a commit 3685606
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 3685606

Please sign in to comment.