Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_placeholdername
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
Rajo Christian Cadorna
widget_placeholdername
Commits
57130a46
Commit
57130a46
authored
Apr 05, 2022
by
Rajo Christian Cadorna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allowed course foreignkey in Assignments app to be nullable
parent
d220187f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
models.py
assignments/models.py
+1
-1
No files found.
assignments/models.py
View file @
57130a46
...
@@ -10,7 +10,7 @@ class Course(models.Model):
...
@@ -10,7 +10,7 @@ class Course(models.Model):
return
self
.
course_title
return
self
.
course_title
class
Assignment
(
models
.
Model
):
class
Assignment
(
models
.
Model
):
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
,
default
=
"1"
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
,
default
=
None
,
null
=
True
,
blank
=
True
)
name
=
models
.
CharField
(
max_length
=
100
)
name
=
models
.
CharField
(
max_length
=
100
)
description
=
models
.
CharField
(
max_length
=
500
)
description
=
models
.
CharField
(
max_length
=
500
)
max_points
=
models
.
IntegerField
()
max_points
=
models
.
IntegerField
()
...
...
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