Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_jupert
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
Joseph Izon
widget_jupert
Commits
6466fb1e
Commit
6466fb1e
authored
Mar 24, 2022
by
Joseph Izon
💀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created model named WidgetUser for Homepage
parent
ae8a6f4d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
db.sqlite3
widget_jupert/db.sqlite3
+0
-0
admin.py
widget_jupert/homepage/admin.py
+10
-0
models.py
widget_jupert/homepage/models.py
+8
-0
settings.py
widget_jupert/widget_jupert/settings.py
+1
-0
No files found.
widget_jupert/db.sqlite3
View file @
6466fb1e
No preview for this file type
widget_jupert/homepage/admin.py
View file @
6466fb1e
from
django.contrib
import
admin
from
django.contrib
import
admin
# Register your models here.
# Register your models here.
from
.models
import
WidgetUser
class
WidgetUserAdmin
(
admin
.
ModelAdmin
):
model
=
WidgetUser
search_fields
=
(
'first_name'
,
'last_name'
,)
list_display
=
(
'first_name'
,
'middle_name'
,
'last_name'
,)
list_filter
=
(
'first_name'
,
'middle_name'
,
'last_name'
,)
admin
.
site
.
register
(
WidgetUser
,
WidgetUserAdmin
)
widget_jupert/homepage/models.py
View file @
6466fb1e
from
django.db
import
models
from
django.db
import
models
# Create your models here.
# 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
)
def
__str__
(
self
):
return
self
.
last_name
\ No newline at end of file
widget_jupert/widget_jupert/settings.py
View file @
6466fb1e
...
@@ -38,6 +38,7 @@ ALLOWED_HOSTS = []
...
@@ -38,6 +38,7 @@ ALLOWED_HOSTS = []
INSTALLED_APPS
=
[
INSTALLED_APPS
=
[
'announcements.apps.AnnouncementsConfig'
,
'announcements.apps.AnnouncementsConfig'
,
'assignments.apps.AssignmentsConfig'
,
'assignments.apps.AssignmentsConfig'
,
'homepage.apps.HomepageConfig'
,
'django.contrib.admin'
,
'django.contrib.admin'
,
'django.contrib.auth'
,
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.contenttypes'
,
...
...
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