Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
d2bcc95a
Commit
d2bcc95a
authored
Mar 05, 2023
by
Deokhyun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed name convention of the model
parent
9f82332a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
1 deletion
+2
-1
admin.cpython-310.pyc
...ischipmunks/assignments/__pycache__/admin.cpython-310.pyc
+0
-0
models.cpython-310.pyc
...schipmunks/assignments/__pycache__/models.cpython-310.pyc
+0
-0
admin.py
widget_aguandhischipmunks/assignments/admin.py
+1
-0
models.py
widget_aguandhischipmunks/assignments/models.py
+1
-1
No files found.
widget_aguandhischipmunks/assignments/__pycache__/admin.cpython-310.pyc
View file @
d2bcc95a
No preview for this file type
widget_aguandhischipmunks/assignments/__pycache__/models.cpython-310.pyc
View file @
d2bcc95a
No preview for this file type
widget_aguandhischipmunks/assignments/admin.py
View file @
d2bcc95a
from
django.contrib
import
admin
from
django.contrib
import
admin
from
.models
import
Assignment
,
Course
widget_aguandhischipmunks/assignments/models.py
View file @
d2bcc95a
...
@@ -9,7 +9,7 @@ class Course(models.Model):
...
@@ -9,7 +9,7 @@ class Course(models.Model):
# Assignments
# Assignments
# name; description; course; perfect_score; passing_score
# name; description; course; perfect_score; passing_score
class
Assignment
s
(
models
.
Model
):
class
Assignment
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
name
=
models
.
CharField
(
max_length
=
100
)
description
=
models
.
CharField
(
max_length
=
1000
)
description
=
models
.
CharField
(
max_length
=
1000
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
course
=
models
.
ForeignKey
(
Course
,
on_delete
=
models
.
CASCADE
)
...
...
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