Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_huli
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
Izaac Daniel B. Muncal
midterm_huli
Commits
8d03446f
Commit
8d03446f
authored
Mar 05, 2023
by
Brescia Amandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created an admin panel for the Assignments app
parent
353dc104
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
admin.cpython-310.pyc
widget_huli/assignments/__pycache__/admin.cpython-310.pyc
+0
-0
apps.cpython-310.pyc
widget_huli/assignments/__pycache__/apps.cpython-310.pyc
+0
-0
admin.py
widget_huli/assignments/admin.py
+14
-1
settings.cpython-310.pyc
widget_huli/widget_huli/__pycache__/settings.cpython-310.pyc
+0
-0
No files found.
widget_huli/assignments/__pycache__/admin.cpython-310.pyc
View file @
8d03446f
No preview for this file type
widget_huli/assignments/__pycache__/apps.cpython-310.pyc
0 → 100644
View file @
8d03446f
File added
widget_huli/assignments/admin.py
View file @
8d03446f
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Assignment
,
Course
class
AssignmentAdmin
(
admin
.
ModelAdmin
):
model
=
Assignment
class
CourseAdmin
(
admin
.
ModelAdmin
):
model
=
Course
admin
.
site
.
register
(
Assignment
,
AssignmentAdmin
)
admin
.
site
.
register
(
Course
,
CourseAdmin
)
widget_huli/widget_huli/__pycache__/settings.cpython-310.pyc
View file @
8d03446f
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