Commit 4f4da51a authored by John Raymon C Yu's avatar John Raymon C Yu

Yu / Assignments

parent 5768c03f
# Generated by Django 4.0.3 on 2022-04-05 14:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0007_alter_assignment_assignment_passing_score'),
]
operations = [
migrations.AlterField(
model_name='assignment',
name='assignment_passing_score',
field=models.IntegerField(editable=False),
),
]
...@@ -17,7 +17,6 @@ class Assignment(models.Model): ...@@ -17,7 +17,6 @@ class Assignment(models.Model):
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
self.assignment_passing_score = int(self.assignment_max_points*60/100) self.assignment_passing_score = int(self.assignment_max_points*60/100)
print("Passing score: " + str(self.assignment_passing_score)) #Debug
super(Assignment, self).save(*args,**kwargs) super(Assignment, self).save(*args,**kwargs)
......
<p> <p>
<h2>COURSE ASSIGNMENTS:</h2> <h2>ASSIGNMENTS: </h2>
{% for assignment in assignments %} {% for assignment in assignments %}
<p><b>Assignment Name: {{assignment.assignment_name}}</b></p> <p><b>Assignment Name: {{assignment.assignment_name}}</b></p>
<p>Description: {{assignment.assignment_description}}</p> <p>Description: {{assignment.assignment_description}}</p>
<p>Perfect Score: {{assignment.assignment_max_points}}</p> <p>Perfect Score: {{assignment.assignment_max_points}}</p>
<p>Passing Score: {{assignment.assignment_passing_score}}</p> <p>Passing Score: {{assignment.assignment_passing_score}}</p>
<p>Course/Section: {{assignment.assignment_course.course_code}} {{assignment.assignment_course.course_title}} {{assignment.assignment_course.course_section}}</p> <p>Course/Section: {{assignment.assignment_course.course_code}} {{assignment.assignment_course.course_title}} {{assignment.assignment_course.course_section}}</p>
<p><br></br></p>
{{ value|linebreaks }} {{ value|linebreaks }}
{% endfor %} {% endfor %}
</p> </p>
\ 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