Commit 3c1468c1 authored by Brescia Amandy's avatar Brescia Amandy

Edited the template for the Edit Assignment Page

parent 308c048b
from django.db import models
from django.urls import reverse
class Course(models.Model):
......@@ -22,4 +23,7 @@ class Assignment(models.Model):
def __str__(self):
return self.name
def get_absolute_url(self):
return reverse('assignments:assignment-details', kwargs={'pk': self.pk})
\ No newline at end of file
......@@ -11,5 +11,5 @@
Perfect Score: {{ object.perfect_score}} <br/>
Passing Score: {{ object.passing_score }} <br/> <br/>
<a href="#">Edit Assignment</a>
<a href="edit">Edit Assignment</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}Add Post{% endblock %}
{% block header %}Add a new post.{% endblock %}
{% block body %}
<form method="POST" enctype="multipart/form-data" action="">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Save Changes to Assignment">
</form>
{% endblock %}
\ 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