Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
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
Angelico Ruiz T. Teaño
widget_Alipins
Commits
5bf0c3c3
Commit
5bf0c3c3
authored
Mar 18, 2022
by
Angelico Ruiz T. Teaño
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 3 records, created search and list display to assignments
parent
1955a24f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
models.cpython-310.pyc
..._alipins/announcements/__pycache__/models.cpython-310.pyc
+0
-0
admin.cpython-310.pyc
widget_alipins/assignments/__pycache__/admin.cpython-310.pyc
+0
-0
admin.py
widget_alipins/assignments/admin.py
+6
-1
db.sqlite3
widget_alipins/db.sqlite3
+0
-0
No files found.
widget_alipins/announcements/__pycache__/models.cpython-310.pyc
View file @
5bf0c3c3
No preview for this file type
widget_alipins/assignments/__pycache__/admin.cpython-310.pyc
View file @
5bf0c3c3
No preview for this file type
widget_alipins/assignments/admin.py
View file @
5bf0c3c3
...
@@ -3,4 +3,9 @@ from django.contrib import admin
...
@@ -3,4 +3,9 @@ from django.contrib import admin
# Register your models here.
# Register your models here.
from
.models
import
Assignment
from
.models
import
Assignment
admin
.
site
.
register
(
Assignment
)
class
AssignmentAdmin
(
admin
.
ModelAdmin
):
\ No newline at end of file
model
=
Assignment
search_fields
=
[
'name'
,
'description'
]
list_display
=
(
'name'
,
'description'
,
'max_points'
)
admin
.
site
.
register
(
Assignment
,
AssignmentAdmin
)
\ No newline at end of file
widget_alipins/db.sqlite3
View file @
5bf0c3c3
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