Skip to content

Commit

Permalink
404 error
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbatu committed Apr 29, 2020
1 parent 99bfc36 commit dc79f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meetings/views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from .models import Meeting

from django.shortcuts import render
from django.shortcuts import render, get_object_or_404

# Create your views here.


def detail(request, id):
meeting = Meeting.objects.get
meeting = get_object_or_404(Meeting, pk=id)
return render(request, 'meetings/detail.html', {
'meeting': meeting
})

0 comments on commit dc79f70

Please sign in to comment.