Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
a2128669
Commit
a2128669
authored
Mar 01, 2023
by
Almira Redoble
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Populated models
parent
128cf48c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
1 deletion
+2
-1
admin.cpython-311.pyc
...vincentdjango/dashboard/__pycache__/admin.cpython-311.pyc
+0
-0
models.cpython-311.pyc
...incentdjango/dashboard/__pycache__/models.cpython-311.pyc
+0
-0
admin.py
widget_vincentdjango/dashboard/admin.py
+1
-0
models.py
widget_vincentdjango/dashboard/models.py
+1
-1
db.sqlite3
widget_vincentdjango/db.sqlite3
+0
-0
No files found.
widget_vincentdjango/dashboard/__pycache__/admin.cpython-311.pyc
View file @
a2128669
No preview for this file type
widget_vincentdjango/dashboard/__pycache__/models.cpython-311.pyc
View file @
a2128669
No preview for this file type
widget_vincentdjango/dashboard/admin.py
View file @
a2128669
...
@@ -24,6 +24,7 @@ class WidgetUserAdmin(admin.ModelAdmin):
...
@@ -24,6 +24,7 @@ class WidgetUserAdmin(admin.ModelAdmin):
class
DepartmentAdmin
(
admin
.
ModelAdmin
):
class
DepartmentAdmin
(
admin
.
ModelAdmin
):
model
=
Department
model
=
Department
list_display
=
(
'dept_name'
,
'home_unit'
)
search_fields
=
(
'dept_name'
,
'home_unit'
)
search_fields
=
(
'dept_name'
,
'home_unit'
)
list_filter
=
(
'home_unit'
,
)
list_filter
=
(
'home_unit'
,
)
...
...
widget_vincentdjango/dashboard/models.py
View file @
a2128669
...
@@ -6,7 +6,7 @@ class Department(models.Model):
...
@@ -6,7 +6,7 @@ class Department(models.Model):
home_unit
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
home_unit
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
def
__str__
(
self
):
def
__str__
(
self
):
return
'{},{}'
.
format
(
self
.
dept_name
,
self
.
home_unit
)
return
'{},
{}'
.
format
(
self
.
dept_name
,
self
.
home_unit
)
class
WidgetUser
(
models
.
Model
):
class
WidgetUser
(
models
.
Model
):
...
...
widget_vincentdjango/db.sqlite3
View file @
a2128669
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