Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm-group3
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
0
Merge Requests
0
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
John Michael T. Amador
midterm-group3
Commits
cf959f2e
Commit
cf959f2e
authored
Feb 28, 2023
by
jmAmador
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
course model
parent
cd5b903b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
models.py
widget_group3/Assignments/models.py
+8
-2
No files found.
widget_group3/Assignments/models.py
View file @
cf959f2e
...
@@ -2,9 +2,15 @@ from django.db import models
...
@@ -2,9 +2,15 @@ from django.db import models
# Create your models here.
# Create your models here.
class
IndexCard
(
models
.
Model
):
class
Assignments
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
name
=
models
.
CharField
(
max_length
=
100
)
description
=
models
.
CharField
(
max_length
=
10000
)
description
=
models
.
CharField
(
max_length
=
10000
)
course
=
models
.
CharField
(
max_length
=
10000
)
course
=
models
.
CharField
(
max_length
=
10000
)
perfect_score
=
models
.
IntegerField
()
perfect_score
=
models
.
IntegerField
()
passing_score
=
models
.
IntegerField
()
passing_score
=
perfect_score
*
0.6
class
Course
(
models
.
Model
):
code
=
models
.
CharField
(
max_length
=
10
)
title
=
models
.
CharField
(
max_length
=
10000
)
section
=
models
.
CharField
(
max_length
=
3
)
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