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
6d2b2900
Commit
6d2b2900
authored
Mar 24, 2022
by
Vaughn Fajardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: added department model to admin
parent
080f4ecc
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
1 deletion
+22
-1
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
admin.cpython-39.pyc
widget_group_17/homepage/__pycache__/admin.cpython-39.pyc
+0
-0
models.cpython-39.pyc
widget_group_17/homepage/__pycache__/models.cpython-39.pyc
+0
-0
admin.py
widget_group_17/homepage/admin.py
+2
-1
0004_rename_department_department_widgetuser.py
...igrations/0004_rename_department_department_widgetuser.py
+18
-0
0004_rename_department_department_widgetuser.cpython-39.pyc
...04_rename_department_department_widgetuser.cpython-39.pyc
+0
-0
models.py
widget_group_17/homepage/models.py
+2
-0
No files found.
widget_group_17/db.sqlite3
View file @
6d2b2900
No preview for this file type
widget_group_17/homepage/__pycache__/admin.cpython-39.pyc
View file @
6d2b2900
No preview for this file type
widget_group_17/homepage/__pycache__/models.cpython-39.pyc
View file @
6d2b2900
No preview for this file type
widget_group_17/homepage/admin.py
View file @
6d2b2900
from
django.contrib
import
admin
# Register your models here.
from
.models
import
WidgetUser
from
.models
import
WidgetUser
,
Department
admin
.
site
.
register
(
WidgetUser
)
admin
.
site
.
register
(
Department
)
widget_group_17/homepage/migrations/0004_rename_department_department_widgetuser.py
0 → 100644
View file @
6d2b2900
# Generated by Django 4.0.3 on 2022-03-24 11:06
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0003_remove_widgetuser_department_department_department_and_more'
),
]
operations
=
[
migrations
.
RenameField
(
model_name
=
'department'
,
old_name
=
'department'
,
new_name
=
'widgetuser'
,
),
]
widget_group_17/homepage/migrations/__pycache__/0004_rename_department_department_widgetuser.cpython-39.pyc
0 → 100644
View file @
6d2b2900
File added
widget_group_17/homepage/models.py
View file @
6d2b2900
...
...
@@ -7,6 +7,8 @@ class WidgetUser(models.Model):
id_num
=
models
.
IntegerField
(
max_length
=
7
,
null
=
True
)
email
=
models
.
EmailField
(
max_length
=
50
,
null
=
True
)
def
__str__
(
self
):
return
self
.
first_name
# Create your models here.
class
Department
(
models
.
Model
):
...
...
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