-
Notifications
You must be signed in to change notification settings - Fork 1
Implement DB Event Offers #5
base: main
Are you sure you want to change the base?
Conversation
|
|
||
|
|
||
| class SettingsForm(SettingsForm): | ||
| class VARSettingsForm(SettingsForm): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class VARSettingsForm(SettingsForm): | |
| class ECouponSettingsForm(SettingsForm): |
| } | ||
|
|
||
|
|
||
| def is_dbvar_event(event: Event): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def is_dbvar_event(event: Event): | |
| def is_legacy_ecoupon_event(event: Event): |
| return super().save(commit=commit) | ||
|
|
||
|
|
||
| class VATSettingsForm(SettingsForm): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class VATSettingsForm(SettingsForm): | |
| class DBEventOffersSettingsForm(SettingsForm): |
or sth like that
| form_class = SettingsForm | ||
| template_name = "pretix_dbvat/index.html" | ||
| form_class = VARSettingsForm | ||
| template_name = "pretix_dbvat/var/index.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaict you accidentally deleted those files instead of moving them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| template_name = "pretix_dbvat/var/index.html" | |
| template_name = "pretix_dbvat/ecoupon/index.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uff - apparently my gitignore just exempted the folder... No wonder it "works on my machine" ;-)
| context_object_name = "coupons" | ||
| form_class = SettingsForm | ||
| template_name = "pretix_dbvat/index.html" | ||
| form_class = VARSettingsForm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| form_class = VARSettingsForm | |
| form_class = ECouponSettingsForm |
Translations pending our approval of the english verbiage