Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
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-Alsijil
Commits
d8176cbf
Verified
Commit
d8176cbf
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Add missing context information 'has_documentation' to register object view
parent
db20e87a
No related branches found
No related tags found
1 merge request
!270
Resolve "Lesson status shows "Missing data" although lesson documentation is filled"
Pipeline
#54338
passed
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+5
-0
5 additions, 0 deletions
CHANGELOG.rst
aleksis/apps/alsijil/views.py
+2
-0
2 additions, 0 deletions
aleksis/apps/alsijil/views.py
with
7 additions
and
0 deletions
CHANGELOG.rst
+
5
−
0
View file @
d8176cbf
...
...
@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Lesson status icon showed 'Missing data' although the data were complete.
`2.0` - 2022-02-06
------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/alsijil/views.py
+
2
−
0
View file @
d8176cbf
...
...
@@ -198,6 +198,8 @@ def register_object(
# Create or get lesson documentation object; can be empty when first opening lesson
lesson_documentation
=
register_object
.
get_or_create_lesson_documentation
(
wanted_week
)
context
[
"
has_documentation
"
]
=
bool
(
lesson_documentation
.
topic
)
lesson_documentation_form
=
LessonDocumentationForm
(
request
.
POST
or
None
,
instance
=
lesson_documentation
,
...
...
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