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