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
Felix Blanke
AKPlanning
Commits
77f4dac9
Commit
77f4dac9
authored
9 months ago
by
Felix Blanke
Browse files
Options
Downloads
Patches
Plain Diff
Add more event info to json export
parent
6147e386
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Merge into fork's `main` branch
Pipeline
#236512
passed
9 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKModel/views/ak.py
+9
-1
9 additions, 1 deletion
AKModel/views/ak.py
with
9 additions
and
1 deletion
AKModel/views/ak.py
+
9
−
1
View file @
77f4dac9
...
...
@@ -144,7 +144,15 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
context
[
"
timeslots
"
]
=
json
.
dumps
(
timeslots
)
context
[
"
info_dict
"
]
=
{}
info_dict
=
{
"
title
"
:
self
.
event
.
name
,
"
slug
"
:
self
.
event
.
slug
}
for
attr
in
[
"
contact_email
"
,
"
place
"
]:
if
hasattr
(
self
.
event
,
attr
)
and
getattr
(
self
.
event
,
attr
):
info_dict
[
attr
]
=
getattr
(
self
.
event
,
attr
)
context
[
"
info_dict
"
]
=
json
.
dumps
(
info_dict
)
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