Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django-diary/source_code_step_5/entries/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EntryUpdateView(UpdateView):
fields = ["title", "content"]

def get_success_url(self):
return reverse_lazy("entry-detail", kwargs={"pk": self.entry.id})
return reverse_lazy("entry-detail", kwargs={"pk": self.object.pk})


class EntryDeleteView(DeleteView):
Expand Down