Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Chronos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Chronos
Commits
13e599ee
Commit
13e599ee
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/request-in-dashboardwidget.get_context' into 'master'
Remove request See merge request
!128
parents
5eedbafd
90dd0816
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!128
Remove request
Pipeline
#5937
passed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/chronos/models.py
+1
-3
1 addition, 3 deletions
aleksis/apps/chronos/models.py
with
1 addition
and
3 deletions
aleksis/apps/chronos/models.py
+
1
−
3
View file @
13e599ee
...
...
@@ -19,7 +19,6 @@ from django.utils.translation import gettext_lazy as _
from
cache_memoize
import
cache_memoize
from
calendarweek.django
import
CalendarWeek
,
i18n_day_abbr_choices_lazy
,
i18n_day_name_choices_lazy
from
colorfield.fields
import
ColorField
from
django_global_request.middleware
import
get_request
from
aleksis.apps.chronos.managers
import
(
AbsenceQuerySet
,
...
...
@@ -515,10 +514,9 @@ class LessonPeriod(ExtensibleModel, WeekAnnotationMixin):
class
TimetableWidget
(
DashboardWidget
):
template
=
"
chronos/widget.html
"
def
get_context
(
self
):
def
get_context
(
self
,
request
):
from
aleksis.apps.chronos.util.build
import
build_timetable
# noqa
request
=
get_request
()
context
=
{
"
has_plan
"
:
True
}
wanted_day
=
TimePeriod
.
get_next_relevant_day
(
timezone
.
now
().
date
(),
datetime
.
now
().
time
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment