Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Francoconuts
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Chester Tan
widget_Francoconuts
Commits
fd1c12cd
Commit
fd1c12cd
authored
Mar 22, 2022
by
Chester Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added and populated Assignments model
parent
984276f6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
2 deletions
+26
-2
admin.cpython-38.pyc
...Francoconuts/assignments/__pycache__/admin.cpython-38.pyc
+0
-0
models.cpython-38.pyc
...rancoconuts/assignments/__pycache__/models.cpython-38.pyc
+0
-0
admin.py
widget_Francoconuts/assignments/admin.py
+7
-1
0002_alter_assignment_name.py
...nuts/assignments/migrations/0002_alter_assignment_name.py
+18
-0
models.py
widget_Francoconuts/assignments/models.py
+1
-1
db.sqlite3
widget_Francoconuts/db.sqlite3
+0
-0
wsgi.cpython-38.pyc
...onuts/widget_Francoconuts/__pycache__/wsgi.cpython-38.pyc
+0
-0
No files found.
widget_Francoconuts/assignments/__pycache__/admin.cpython-38.pyc
View file @
fd1c12cd
No preview for this file type
widget_Francoconuts/assignments/__pycache__/models.cpython-38.pyc
View file @
fd1c12cd
No preview for this file type
widget_Francoconuts/assignments/admin.py
View file @
fd1c12cd
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Assignment
class
AssignmentAdmin
(
admin
.
ModelAdmin
):
model
=
Assignment
admin
.
site
.
register
(
Assignment
,
AssignmentAdmin
)
\ No newline at end of file
widget_Francoconuts/assignments/migrations/0002_alter_assignment_name.py
0 → 100644
View file @
fd1c12cd
# Generated by Django 4.0.3 on 2022-03-22 06:31
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assignments'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'assignment'
,
name
=
'name'
,
field
=
models
.
CharField
(
max_length
=
30
),
),
]
widget_Francoconuts/assignments/models.py
View file @
fd1c12cd
from
django.db
import
models
class
Assignment
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
1
0
)
name
=
models
.
CharField
(
max_length
=
3
0
)
description
=
models
.
TextField
(
max_length
=
500
)
max_points
=
models
.
IntegerField
()
widget_Francoconuts/db.sqlite3
View file @
fd1c12cd
No preview for this file type
widget_Francoconuts/widget_Francoconuts/__pycache__/wsgi.cpython-38.pyc
View file @
fd1c12cd
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