Commit 7a25e9f9 authored by Deokhyun Lee's avatar Deokhyun Lee

comment for edit view has been updated

parent af0a8c3b
...@@ -38,7 +38,8 @@ class AssignmentEditView(UpdateView): ...@@ -38,7 +38,8 @@ class AssignmentEditView(UpdateView):
template_name = 'assignment-edit.html' template_name = 'assignment-edit.html'
# Get the assignment object based on the pk in the URL # This will get the object, and this object is used to tell Django
# that we are updating.
def get_object(self, queryset=None): def get_object(self, queryset=None):
pk = self.kwargs.get('pk') pk = self.kwargs.get('pk')
return Assignment.objects.get(pk=pk) return Assignment.objects.get(pk=pk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment