Commit 9e1a908e authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

final touches

parent 56cc32ca
...@@ -6,7 +6,7 @@ class Course(models.Model): ...@@ -6,7 +6,7 @@ class Course(models.Model):
course_title = models.CharField(unique=True, default="", max_length=50,) course_title = models.CharField(unique=True, default="", max_length=50,)
def __str__(self): def __str__(self):
return '{} {}-'.format(self.course_code, self.course_title,) return '{} {}'.format(self.course_code, self.course_title,)
class Assignment(models.Model): class Assignment(models.Model):
......
...@@ -18,11 +18,11 @@ def index(request): ...@@ -18,11 +18,11 @@ def index(request):
body += "<p style='border: 2px solid gray;\ body += "<p style='border: 2px solid gray;\
border-radius:5px;\ border-radius:5px;\
padding:20px 30px;'>\ padding:20px 30px;'>\
Assignment Name: "+subject.assignment_name+" <br>\ <b> Assignment Name: "+subject.assignment_name+" </b> <br>\
Description: "+subject.description+" <br>\ Description: "+subject.description+" <br>\
Perfect Score: "+str(subject.perfect_score)+" <br>\ Perfect Score: "+str(subject.perfect_score)+" <br>\
Passing Score: "+str(subject.passing_score)+" <br>\ Passing Score: "+str(subject.passing_score)+" <br>\
Course/Section: "+str(subject.course)+str(subject.section)+" <br>\ Course/Section: "+str(subject.course)+" /"+str(subject.section)+" <br>\
</p>" </p>"
return_string = "<html>\ return_string = "<html>\
......
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