Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
389ab1fc
Commit
389ab1fc
authored
Mar 30, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Plain Diff
Resolved cache changes.
parents
2d3e29bd
5d8908c0
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
146 additions
and
2 deletions
+146
-2
README.md
README.md
+5
-0
admin.cpython-39.pyc
widget_group_17/assignments/__pycache__/admin.cpython-39.pyc
+0
-0
apps.cpython-39.pyc
widget_group_17/assignments/__pycache__/apps.cpython-39.pyc
+0
-0
models.cpython-39.pyc
...et_group_17/assignments/__pycache__/models.cpython-39.pyc
+0
-0
admin.py
widget_group_17/assignments/admin.py
+3
-0
0001_initial.py
widget_group_17/assignments/migrations/0001_initial.py
+23
-0
0001_initial.cpython-39.pyc
...nments/migrations/__pycache__/0001_initial.cpython-39.pyc
+0
-0
__init__.cpython-39.pyc
...ssignments/migrations/__pycache__/__init__.cpython-39.pyc
+0
-0
models.py
widget_group_17/assignments/models.py
+7
-0
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
0002_department_widgetuser_email_widgetuser_id_num_and_more.py
...department_widgetuser_email_widgetuser_id_num_and_more.py
+52
-0
0003_remove_widgetuser_department_department_department_and_more.py
...e_widgetuser_department_department_department_and_more.py
+38
-0
0002_department_widgetuser_email_widgetuser_id_num_and_more.cpython-39.pyc
...idgetuser_email_widgetuser_id_num_and_more.cpython-39.pyc
+0
-0
0003_remove_widgetuser_department_department_department_and_more.cpython-39.pyc
..._department_department_department_and_more.cpython-39.pyc
+0
-0
models.py
widget_group_17/homepage/models.py
+17
-2
settings.py
widget_group_17/widget_group_17/settings.py
+1
-0
No files found.
README.md
View file @
389ab1fc
...
...
@@ -13,4 +13,9 @@ JOAN DENISE NOCOS
Created Assignments app
RECORDING
LAB 1
https://drive.google.com/file/d/1h7ZKUgOm05asADkjp_4TqzfbnsMjiszC/view?usp=sharing
LAB 2
https://drive.google.com/file/d/1vxanijE64BhKiguSCyYZRtvO4vT7x44i/view?usp=sharing
\ No newline at end of file
widget_group_17/assignments/__pycache__/admin.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/assignments/__pycache__/apps.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/assignments/__pycache__/models.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/assignments/admin.py
View file @
389ab1fc
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Assignment
admin
.
site
.
register
(
Assignment
)
\ No newline at end of file
widget_group_17/assignments/migrations/0001_initial.py
0 → 100644
View file @
389ab1fc
# Generated by Django 3.2.12 on 2022-03-22 23:38
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
=
50
)),
(
'description'
,
models
.
CharField
(
max_length
=
500
)),
(
'max_points'
,
models
.
IntegerField
(
default
=
0
)),
],
),
]
widget_group_17/assignments/migrations/__pycache__/0001_initial.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/assignments/migrations/__pycache__/__init__.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/assignments/models.py
View file @
389ab1fc
from
django.db
import
models
# Create your models here.
class
Assignment
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
50
)
description
=
models
.
CharField
(
max_length
=
500
)
max_points
=
models
.
IntegerField
(
default
=
0
)
def
_str_
(
self
):
return
self
.
name
\ No newline at end of file
widget_group_17/db.sqlite3
View file @
389ab1fc
No preview for this file type
widget_group_17/homepage/migrations/0002_department_widgetuser_email_widgetuser_id_num_and_more.py
0 → 100644
View file @
389ab1fc
# Generated by Django 4.0.3 on 2022-03-24 10:26
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Department'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'dept_name'
,
models
.
CharField
(
max_length
=
50
,
null
=
True
)),
(
'home_unit'
,
models
.
CharField
(
max_length
=
50
,
null
=
True
)),
],
),
migrations
.
AddField
(
model_name
=
'widgetuser'
,
name
=
'email'
,
field
=
models
.
EmailField
(
max_length
=
50
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'widgetuser'
,
name
=
'id_num'
,
field
=
models
.
IntegerField
(
max_length
=
7
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'first_name'
,
field
=
models
.
CharField
(
max_length
=
50
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'last_name'
,
field
=
models
.
CharField
(
max_length
=
50
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'middle_name'
,
field
=
models
.
CharField
(
max_length
=
50
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'widgetuser'
,
name
=
'department'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.department'
),
),
]
widget_group_17/homepage/migrations/0003_remove_widgetuser_department_department_department_and_more.py
0 → 100644
View file @
389ab1fc
# Generated by Django 4.0.3 on 2022-03-24 10:40
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0002_department_widgetuser_email_widgetuser_id_num_and_more'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'widgetuser'
,
name
=
'department'
,
),
migrations
.
AddField
(
model_name
=
'department'
,
name
=
'department'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'homepage.widgetuser'
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'first_name'
,
field
=
models
.
CharField
(
max_length
=
50
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'last_name'
,
field
=
models
.
CharField
(
max_length
=
50
),
),
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'middle_name'
,
field
=
models
.
CharField
(
max_length
=
50
),
),
]
widget_group_17/homepage/migrations/__pycache__/0002_department_widgetuser_email_widgetuser_id_num_and_more.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/homepage/migrations/__pycache__/0003_remove_widgetuser_department_department_department_and_more.cpython-39.pyc
0 → 100644
View file @
389ab1fc
File added
widget_group_17/homepage/models.py
View file @
389ab1fc
from
django.db
import
models
# Create your models here.
class
WidgetUser
(
models
.
Model
):
first_name
=
models
.
CharField
(
max_length
=
50
)
middle_name
=
models
.
CharField
(
max_length
=
50
)
last_name
=
models
.
CharField
(
max_length
=
50
)
id_num
=
models
.
IntegerField
(
max_length
=
7
,
null
=
True
)
email
=
models
.
EmailField
(
max_length
=
50
,
null
=
True
)
# Create your models here.
class
Department
(
models
.
Model
):
dept_name
=
models
.
CharField
(
max_length
=
50
,
null
=
True
)
home_unit
=
models
.
CharField
(
max_length
=
50
,
null
=
True
)
department
=
models
.
ForeignKey
(
WidgetUser
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
widget_group_17/widget_group_17/settings.py
View file @
389ab1fc
...
...
@@ -36,6 +36,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS
=
[
'announcements.apps.AnnouncementsConfig'
,
'assignments.apps.AssignmentsConfig'
,
'forum.apps.ForumConfig'
,
'homepage.apps.HomepageConfig'
,
'django.contrib.admin'
,
...
...
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