Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 18
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
Rac Gerard Elizaga
widget_group 18
Commits
a665ee4c
Commit
a665ee4c
authored
Apr 05, 2022
by
Joerell Frank Yee Lao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the error, whenever oppening the assignments tab and error screen occurs
parent
f0a4818f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
7 deletions
+20
-7
models.cpython-310.pyc
...t_group_18/assignments/__pycache__/models.cpython-310.pyc
+0
-0
0005_assignment_course.py
...group_18/assignments/migrations/0005_assignment_course.py
+19
-0
0005_assignment_course.cpython-310.pyc
...ations/__pycache__/0005_assignment_course.cpython-310.pyc
+0
-0
models.py
widget_group_18/assignments/models.py
+1
-7
db.sqlite3
widget_group_18/db.sqlite3
+0
-0
No files found.
widget_group_18/assignments/__pycache__/models.cpython-310.pyc
View file @
a665ee4c
No preview for this file type
widget_group_18/assignments/migrations/0005_assignment_course.py
0 → 100644
View file @
a665ee4c
# Generated by Django 3.2.12 on 2022-04-05 01:53
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assignments'
,
'0004_course'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'assignment'
,
name
=
'course'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'assignments.course'
),
),
]
widget_group_18/assignments/migrations/__pycache__/0005_assignment_course.cpython-310.pyc
0 → 100644
View file @
a665ee4c
File added
widget_group_18/assignments/models.py
View file @
a665ee4c
...
@@ -7,13 +7,7 @@ class Course(models.Model):
...
@@ -7,13 +7,7 @@ class Course(models.Model):
section
=
models
.
CharField
(
max_length
=
3
)
section
=
models
.
CharField
(
max_length
=
3
)
class
Assignment
(
models
.
Model
):
class
Assignment
(
models
.
Model
):
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
name
=
models
.
CharField
(
max_length
=
50
)
name
=
models
.
CharField
(
max_length
=
50
)
description
=
models
.
CharField
(
max_length
=
500
)
description
=
models
.
CharField
(
max_length
=
500
)
max_points
=
models
.
IntegerField
(
default
=
0
)
max_points
=
models
.
IntegerField
(
default
=
0
)
def
__str__
(
self
):
return
self
.
name
widget_group_18/db.sqlite3
View file @
a665ee4c
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