Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretix public registrations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Monitor
Service Desk
Analyze
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
KIF
Pretix public registrations
Commits
d104e98c
Commit
d104e98c
authored
2 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Rename Participations to Registrations, Settings
parent
08ee1967
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pretix_public_registrations/forms.py
+1
-1
1 addition, 1 deletion
pretix_public_registrations/forms.py
pretix_public_registrations/urls.py
+3
-3
3 additions, 3 deletions
pretix_public_registrations/urls.py
pretix_public_registrations/views.py
+3
-3
3 additions, 3 deletions
pretix_public_registrations/views.py
with
7 additions
and
7 deletions
pretix_public_registrations/forms.py
+
1
−
1
View file @
d104e98c
...
...
@@ -3,7 +3,7 @@ from django.utils.translation import gettext_lazy as _
from
pretix.base.forms
import
SettingsForm
class
PublicRegistrationsForm
(
SettingsForm
):
class
PublicRegistrations
Settings
Form
(
SettingsForm
):
public_registrations_items
=
forms
.
MultipleChoiceField
(
widget
=
forms
.
CheckboxSelectMultiple
(
attrs
=
{
"
class
"
:
"
scrolling-multiple-choice
"
}
...
...
This diff is collapsed.
Click to expand it.
pretix_public_registrations/urls.py
+
3
−
3
View file @
d104e98c
from
django.conf.urls
import
url
from
.views
import
Public
Participation
sView
from
.views
import
Public
RegistrationsSetting
sView
urlpatterns
=
[
url
(
r
"
^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/public_
particip
ations/$
"
,
Public
Participation
sView
.
as_view
(),
r
"
^control/event/(?P<organizer>[^/]+)/(?P<event>[^/]+)/public_
registr
ations/$
"
,
Public
RegistrationsSetting
sView
.
as_view
(),
name
=
"
settings
"
,
)
]
This diff is collapsed.
Click to expand it.
pretix_public_registrations/views.py
+
3
−
3
View file @
d104e98c
from
django.urls
import
reverse
from
pretix.control.views.event
import
EventSettingsFormView
,
EventSettingsViewMixin
from
.forms
import
PublicRegistrationsForm
from
.forms
import
PublicRegistrations
Settings
Form
class
Public
Participation
sView
(
EventSettingsViewMixin
,
EventSettingsFormView
):
form_class
=
PublicRegistrationsForm
class
Public
RegistrationsSetting
sView
(
EventSettingsViewMixin
,
EventSettingsFormView
):
form_class
=
PublicRegistrations
Settings
Form
template_name
=
"
pretix_public_registrations/settings.html
"
def
get_success_url
(
self
,
**
kwargs
):
...
...
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