Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
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
Kyla Martin
widgets_FEKK
Commits
076243d0
Commit
076243d0
authored
Mar 21, 2022
by
Katrina Bernice Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed and migrated Assignments model, populated databases
parent
a339ed4e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
0 deletions
+53
-0
.DS_Store
WidgetFEKK/.DS_Store
+0
-0
.DS_Store
WidgetFEKK/Assignments/.DS_Store
+0
-0
admin.py
WidgetFEKK/Assignments/admin.py
+3
-0
0001_initial.py
WidgetFEKK/Assignments/migrations/0001_initial.py
+23
-0
models.py
WidgetFEKK/Assignments/models.py
+4
-0
0001_initial.py
WidgetFEKK/Homepage/migrations/0001_initial.py
+23
-0
db.sqlite3
WidgetFEKK/db.sqlite3
+0
-0
No files found.
WidgetFEKK/.DS_Store
View file @
076243d0
No preview for this file type
WidgetFEKK/Assignments/.DS_Store
View file @
076243d0
No preview for this file type
WidgetFEKK/Assignments/admin.py
View file @
076243d0
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Assignment
admin
.
site
.
register
(
Assignment
)
\ No newline at end of file
WidgetFEKK/Assignments/migrations/0001_initial.py
0 → 100644
View file @
076243d0
# Generated by Django 4.0.3 on 2022-03-21 14:32
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Assignment'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
69
)),
(
'description'
,
models
.
CharField
(
max_length
=
420
)),
(
'max_points'
,
models
.
IntegerField
()),
],
),
]
WidgetFEKK/Assignments/models.py
View file @
076243d0
from
django.db
import
models
# Create your models here.
class
Assignment
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
69
)
description
=
models
.
CharField
(
max_length
=
420
)
max_points
=
models
.
IntegerField
()
\ No newline at end of file
WidgetFEKK/Homepage/migrations/0001_initial.py
0 → 100644
View file @
076243d0
# Generated by Django 4.0.3 on 2022-03-21 14:32
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'WidgetUser'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'first_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'middle_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'last_name'
,
models
.
CharField
(
max_length
=
50
)),
],
),
]
WidgetFEKK/db.sqlite3
View file @
076243d0
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