Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Almira Redoble
midterm_vincentdjango
Commits
9e1a908e
Commit
9e1a908e
authored
Mar 05, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final touches
parent
56cc32ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
models.py
widget_vincentdjango/assignments/models.py
+1
-1
views.py
widget_vincentdjango/assignments/views.py
+2
-2
No files found.
widget_vincentdjango/assignments/models.py
View file @
9e1a908e
...
...
@@ -6,7 +6,7 @@ class Course(models.Model):
course_title
=
models
.
CharField
(
unique
=
True
,
default
=
""
,
max_length
=
50
,)
def
__str__
(
self
):
return
'{} {}
-
'
.
format
(
self
.
course_code
,
self
.
course_title
,)
return
'{} {}'
.
format
(
self
.
course_code
,
self
.
course_title
,)
class
Assignment
(
models
.
Model
):
...
...
widget_vincentdjango/assignments/views.py
View file @
9e1a908e
...
...
@@ -18,11 +18,11 @@ def index(request):
body
+=
"<p style='border: 2px solid gray;
\
border-radius:5px;
\
padding:20px 30px;'>
\
Assignment Name: "
+
subject
.
assignment_name
+
"
<br>
\
<b> Assignment Name: "
+
subject
.
assignment_name
+
" </b>
<br>
\
Description: "
+
subject
.
description
+
" <br>
\
Perfect Score: "
+
str
(
subject
.
perfect_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>"
return_string
=
"<html>
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment