Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TIC-Desk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
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
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
TIC-Desk
Commits
ee5653de
Verified
Commit
ee5653de
authored
7 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Attach raw form data as JSON.
parent
7fb13e97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ticdesk_events/views.py
+5
-1
5 additions, 1 deletion
ticdesk_events/views.py
with
5 additions
and
1 deletion
ticdesk_events/views.py
+
5
−
1
View file @
ee5653de
from
datetime
import
date
import
json
from
django.apps
import
apps
from
django.core.mail
import
EmailMessage
...
...
@@ -101,7 +102,10 @@ def register_event(request, cn):
):
message
.
body
+=
'
*****
'
+
_
(
'
Geänderte Anschrift
'
)
+
'
*****
\n\n
'
message
.
body
+=
form_to_text_table
(
register_form
,
78
)
# Attach raw form data as attachment
message
.
attach
(
'
register_form.json
'
,
json
.
dumps
(
register_form
.
cleaned_data
,
indent
=
4
),
'
application/json
'
)
# Send message
message
.
send
()
...
...
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