Assignments page has been created

parent 44c08a4d
...@@ -20,7 +20,7 @@ class Assignment(models.Model): ...@@ -20,7 +20,7 @@ class Assignment(models.Model):
perfect_score = models.IntegerField() perfect_score = models.IntegerField()
def get_absolute_url(self): def get_absolute_url(self):
return reverse('Assignments:assignments-details', kwargs={'pk': self.pk}) return reverse('Assignments:assignment-details', kwargs={'pk': self.pk})
@property @property
def passing_score(self): def passing_score(self):
......
...@@ -5,7 +5,7 @@ from .views import (AssignmentView, ...@@ -5,7 +5,7 @@ from .views import (AssignmentView,
urlpatterns = [ urlpatterns = [
path('assignment/', AssignmentView, name="index"), path('assignment/', AssignmentView, name="index"),
path('<pk>/details/', AssignmentsDetailView.as_view(), name='assignment-detail') path('<pk>/details/', AssignmentsDetailView.as_view(), name='assignment-details')
] ]
app_name = "Assignments" app_name = "Assignments"
\ No newline at end of file
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