Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Weitz
AKPlanning
Commits
732f37e9
Commit
732f37e9
authored
4 years ago
by
Benjamin Hättasch
Browse files
Options
Downloads
Patches
Plain Diff
Deactivate faulty AK Wall filtering
parent
6f08d182
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKPlan/views.py
+4
-2
4 additions, 2 deletions
AKPlan/views.py
with
4 additions
and
2 deletions
AKPlan/views.py
+
4
−
2
View file @
732f37e9
...
@@ -67,6 +67,7 @@ class PlanScreenView(PlanIndexView):
...
@@ -67,6 +67,7 @@ class PlanScreenView(PlanIndexView):
return
redirect
(
reverse_lazy
(
"
plan:plan_overview
"
,
kwargs
=
{
"
event_slug
"
:
self
.
event
.
slug
}))
return
redirect
(
reverse_lazy
(
"
plan:plan_overview
"
,
kwargs
=
{
"
event_slug
"
:
self
.
event
.
slug
}))
return
s
return
s
"""
def get_queryset(self):
def get_queryset(self):
# Determine interesting range (some hours ago until some hours in the future as specified in the settings)
# Determine interesting range (some hours ago until some hours in the future as specified in the settings)
now = datetime.now().astimezone(self.event.timezone)
now = datetime.now().astimezone(self.event.timezone)
...
@@ -79,11 +80,12 @@ class PlanScreenView(PlanIndexView):
...
@@ -79,11 +80,12 @@ class PlanScreenView(PlanIndexView):
# Restrict AK slots to relevant ones
# Restrict AK slots to relevant ones
# This will automatically filter all rooms not needed for the selected range in the orginal get_context method
# This will automatically filter all rooms not needed for the selected range in the orginal get_context method
return super().get_queryset().filter(start__gt=self.start)
return super().get_queryset().filter(start__gt=self.start)
"""
def
get_context_data
(
self
,
*
,
object_list
=
None
,
**
kwargs
):
def
get_context_data
(
self
,
*
,
object_list
=
None
,
**
kwargs
):
context
=
super
().
get_context_data
(
object_list
=
object_list
,
**
kwargs
)
context
=
super
().
get_context_data
(
object_list
=
object_list
,
**
kwargs
)
context
[
"
start
"
]
=
self
.
start
context
[
"
start
"
]
=
self
.
event
.
start
context
[
"
end
"
]
=
self
.
end
context
[
"
end
"
]
=
self
.
event
.
end
return
context
return
context
...
...
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