Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_k3git
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
Stefan Gomez
midterm_k3git
Commits
717a5f34
Commit
717a5f34
authored
Mar 05, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created Admin + Superuser
parent
7f2f9d39
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
db.sqlite3
widget_k3git/db.sqlite3
+0
-0
admin.cpython-39.pyc
widget_k3git/forum/__pycache__/admin.cpython-39.pyc
+0
-0
admin.py
widget_k3git/forum/admin.py
+13
-0
No files found.
widget_k3git/db.sqlite3
View file @
717a5f34
No preview for this file type
widget_k3git/forum/__pycache__/admin.cpython-39.pyc
View file @
717a5f34
No preview for this file type
widget_k3git/forum/admin.py
View file @
717a5f34
from
django.contrib
import
admin
from
.models
import
ForumPost
,
Reply
class
ForumPostAdmin
(
admin
.
ModelAdmin
):
model
=
ForumPost
class
ReplyAdmin
(
admin
.
ModelAdmin
):
model
=
Reply
# Register your models here.
admin
.
site
.
register
(
ForumPost
,
ForumPostAdmin
)
admin
.
site
.
register
(
Reply
,
ReplyAdmin
)
\ No newline at end of file
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