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
0e011835
Commit
0e011835
authored
May 15, 2023
by
Mavrick Jordan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated dashboard model for home unit of widget user. Migrated newly changed model.
parent
b1816dca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
1 deletion
+49
-1
0004_auto_20230515_0552.py
...nimav/announcements/migrations/0004_auto_20230515_0552.py
+30
-0
0002_alter_department_home_unit.py
...v/dashboard/migrations/0002_alter_department_home_unit.py
+18
-0
models.py
widget_mgabolanimav/dashboard/models.py
+1
-1
No files found.
widget_mgabolanimav/announcements/migrations/0004_auto_20230515_0552.py
0 → 100644
View file @
0e011835
# Generated by Django 3.2 on 2023-05-15 05:52
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'dashboard'
,
'0002_alter_department_home_unit'
),
(
'announcements'
,
'0003_announcement_announcement_author'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_author'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'dashboard.widgetuser'
,
verbose_name
=
'Author'
),
),
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_body'
,
field
=
models
.
TextField
(
max_length
=
250
,
null
=
True
,
unique
=
True
,
verbose_name
=
'Body'
),
),
migrations
.
AlterField
(
model_name
=
'announcement'
,
name
=
'announcement_title'
,
field
=
models
.
CharField
(
max_length
=
50
,
null
=
True
,
unique
=
True
,
verbose_name
=
'Title'
),
),
]
widget_mgabolanimav/dashboard/migrations/0002_alter_department_home_unit.py
0 → 100644
View file @
0e011835
# Generated by Django 3.2 on 2023-05-15 05:52
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'dashboard'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'department'
,
name
=
'home_unit'
,
field
=
models
.
CharField
(
max_length
=
50
,
null
=
True
),
),
]
widget_mgabolanimav/dashboard/models.py
View file @
0e011835
...
...
@@ -5,7 +5,7 @@ from django.urls import reverse
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
)
home_unit
=
models
.
CharField
(
max_length
=
50
,
null
=
True
)
def
__str__
(
self
):
return
self
.
dept_name
...
...
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