Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
711f1202
Unverified
Commit
711f1202
authored
Feb 16, 2018
by
Thom Wiggers
📐
Browse files
Fix ordering of RegistrationInformation fields
Closes
#592
parent
25139a3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/services.py
View file @
711f1202
from
collections
import
OrderedDict
from
django.utils
import
timezone
from
django.utils
import
timezone
from
django.utils.translation
import
ugettext_lazy
as
_
,
get_language
from
django.utils.translation
import
ugettext_lazy
as
_
,
get_language
...
@@ -166,7 +168,7 @@ def registration_fields(member, event):
...
@@ -166,7 +168,7 @@ def registration_fields(member, event):
if
(
event_permissions
(
member
,
event
)[
"update_registration"
]
and
if
(
event_permissions
(
member
,
event
)[
"update_registration"
]
and
registration
):
registration
):
information_fields
=
registration
.
information_fields
information_fields
=
registration
.
information_fields
fields
=
{}
fields
=
OrderedDict
()
for
information_field
in
information_fields
:
for
information_field
in
information_fields
:
field
=
information_field
[
"field"
]
field
=
information_field
[
"field"
]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment