Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
51253f93
Commit
51253f93
authored
Apr 05, 2022
by
Joan Denise Nocos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: added Course model to assignments app
parent
a830d22d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
1 deletion
+28
-1
models.cpython-39.pyc
...et_group_17/assignments/__pycache__/models.cpython-39.pyc
+0
-0
0003_course.py
widget_group_17/assignments/migrations/0003_course.py
+22
-0
0003_course.cpython-39.pyc
...gnments/migrations/__pycache__/0003_course.cpython-39.pyc
+0
-0
models.py
widget_group_17/assignments/models.py
+6
-1
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
No files found.
widget_group_17/assignments/__pycache__/models.cpython-39.pyc
View file @
51253f93
No preview for this file type
widget_group_17/assignments/migrations/0003_course.py
0 → 100644
View file @
51253f93
# Generated by Django 3.2.12 on 2022-04-05 04:19
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assignments'
,
'0002_assignment_passing_score'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Course'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'course_code'
,
models
.
CharField
(
max_length
=
10
)),
(
'course_title'
,
models
.
CharField
(
max_length
=
256
)),
(
'section'
,
models
.
CharField
(
max_length
=
3
)),
],
),
]
widget_group_17/assignments/migrations/__pycache__/0003_course.cpython-39.pyc
0 → 100644
View file @
51253f93
File added
widget_group_17/assignments/models.py
View file @
51253f93
...
@@ -8,4 +8,9 @@ class Assignment(models.Model):
...
@@ -8,4 +8,9 @@ class Assignment(models.Model):
passing_score
=
models
.
IntegerField
(
default
=
0
)
passing_score
=
models
.
IntegerField
(
default
=
0
)
def
_str_
(
self
):
def
_str_
(
self
):
return
self
.
name
return
self
.
name
\ No newline at end of file
class
Course
(
models
.
Model
):
course_code
=
models
.
CharField
(
max_length
=
10
)
course_title
=
models
.
CharField
(
max_length
=
256
)
section
=
models
.
CharField
(
max_length
=
3
)
\ No newline at end of file
widget_group_17/db.sqlite3
View file @
51253f93
No preview for this file type
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