Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_nicsbabes
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
Nics De Vega
midterm_nicsbabes
Commits
eff51892
Commit
eff51892
authored
Mar 06, 2023
by
Gabriel Geraldo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amended admin.py and models.py to fit format
parent
598be356
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
admin.py
widget_nicsbabes/widget_calendar/admin.py
+1
-1
models.py
widget_nicsbabes/widget_calendar/models.py
+3
-3
No files found.
widget_nicsbabes/widget_calendar/admin.py
View file @
eff51892
...
@@ -11,7 +11,7 @@ class LocationAdmin(admin.ModelAdmin):
...
@@ -11,7 +11,7 @@ class LocationAdmin(admin.ModelAdmin):
class
EventAdmin
(
admin
.
ModelAdmin
):
class
EventAdmin
(
admin
.
ModelAdmin
):
model
=
Event
model
=
Event
list_display
=
(
"
course"
,
"activity"
,
"target_datetim
e"
)
list_display
=
(
"
activity"
,
"target_datetime"
,
"cours
e"
)
search_fields
=
(
"activity"
,
"course"
)
search_fields
=
(
"activity"
,
"course"
)
list_filter
=
(
"course"
,)
list_filter
=
(
"course"
,)
...
...
widget_nicsbabes/widget_calendar/models.py
View file @
eff51892
...
@@ -3,9 +3,9 @@ from assignments.models import Course
...
@@ -3,9 +3,9 @@ from assignments.models import Course
class
Location
(
models
.
Model
):
class
Location
(
models
.
Model
):
ONSITE
=
'
ONSITE
'
ONSITE
=
'
onsite
'
ONLINE
=
'
ONLINE
'
ONLINE
=
'
online
'
HYBRID
=
'
HYBRID
'
HYBRID
=
'
hybrid
'
MODE_CHOICES
=
[
MODE_CHOICES
=
[
(
ONSITE
,
'Onsite'
),
(
ONSITE
,
'Onsite'
),
(
ONLINE
,
'Online'
),
(
ONLINE
,
'Online'
),
...
...
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