Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_mgabolanimav
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
Mavrick Jordan Lee
midterm_mgabolanimav
Commits
4db77337
Commit
4db77337
authored
Mar 04, 2023
by
Mavrick Jordan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created dashboard Django application. Added Department and WidgetUser models.
parent
6d06d3c0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
0 deletions
+34
-0
__init__.py
widget_mgabolanimav/dashboard/__init__.py
+0
-0
admin.py
widget_mgabolanimav/dashboard/admin.py
+3
-0
apps.py
widget_mgabolanimav/dashboard/apps.py
+6
-0
__init__.py
widget_mgabolanimav/dashboard/migrations/__init__.py
+0
-0
models.py
widget_mgabolanimav/dashboard/models.py
+19
-0
tests.py
widget_mgabolanimav/dashboard/tests.py
+3
-0
views.py
widget_mgabolanimav/dashboard/views.py
+3
-0
__init__.cpython-39.pyc
...v/widget_mgabolanimav/__pycache__/__init__.cpython-39.pyc
+0
-0
settings.cpython-39.pyc
...v/widget_mgabolanimav/__pycache__/settings.cpython-39.pyc
+0
-0
No files found.
widget_mgabolanimav/dashboard/__init__.py
0 → 100644
View file @
4db77337
widget_mgabolanimav/dashboard/admin.py
0 → 100644
View file @
4db77337
from
django.contrib
import
admin
# Register your models here.
widget_mgabolanimav/dashboard/apps.py
0 → 100644
View file @
4db77337
from
django.apps
import
AppConfig
class
DashboardConfig
(
AppConfig
):
default_auto_field
=
'django.db.models.BigAutoField'
name
=
'dashboard'
widget_mgabolanimav/dashboard/migrations/__init__.py
0 → 100644
View file @
4db77337
widget_mgabolanimav/dashboard/models.py
0 → 100644
View file @
4db77337
from
django.db
import
models
# Create your models here.
class
Department
(
models
.
Model
):
dept_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
null
=
True
)
home_unit
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
null
=
True
)
def
__str__
(
self
):
return
self
.
dept_name
class
WidgetUser
(
models
.
Model
):
first_name
=
models
.
CharField
(
max_length
=
30
,
unique
=
True
,
null
=
True
)
middle_name
=
models
.
CharField
(
max_length
=
20
,
unique
=
True
,
null
=
True
)
last_name
=
models
.
CharField
(
max_length
=
20
,
unique
=
True
,
null
=
True
)
user_department
=
models
.
ForeignKey
(
Department
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
self
.
first_name
widget_mgabolanimav/dashboard/tests.py
0 → 100644
View file @
4db77337
from
django.test
import
TestCase
# Create your tests here.
widget_mgabolanimav/dashboard/views.py
0 → 100644
View file @
4db77337
from
django.shortcuts
import
render
# Create your views here.
widget_mgabolanimav/widget_mgabolanimav/__pycache__/__init__.cpython-39.pyc
0 → 100644
View file @
4db77337
File added
widget_mgabolanimav/widget_mgabolanimav/__pycache__/settings.cpython-39.pyc
0 → 100644
View file @
4db77337
File added
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