Made 3 instances of Assignments and fixed the template layout to reflect the specs more closely

parent 651ebcac
......@@ -13,7 +13,7 @@ class Course(models.Model):
message='Only letters are allowed')])
def __str__(self):
return "%s %s %s" % (self.code, self.title, self.section)
return "%s %s-%s" % (self.code, self.title, self.section)
......
<p>
{{"Widget's Assignments Page"}}
</p><br>
{{"Widget's Assignments Page"}}<br><br>
</p>
{% for data in assignment %}
<p>Assignment name: {{data.name}}</p>
<p>Description: {{data.description}}</p>
<p>Perfect Score: {{data.perfect_score}}</p>
<p>Passing Score: {{data.passing_score}}</p>
<p>Course/Section: {{data.course}}</p>
<br>
<p>
Assignment name: {{data.name}}<br>
Description: {{data.description}}<br>
Perfect Score: {{data.perfect_score}}<br>
Passing Score: {{data.passing_score}}<br>
Course/Section: {{data.course}}<br>
</p>
{% endfor %}
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