-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to pass transaction fees onto buyers (#762)
* Add TicketSettings model * Update views to use ticket settings * Update tests * Update tests for codecov * Minor tweaks to tests * Revert to default order limit
- Loading branch information
1 parent
56b9394
commit f41a07f
Showing
5 changed files
with
206 additions
and
60 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
backend/clubs/migrations/0118_remove_event_ticket_drop_time_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Generated by Django 5.0.4 on 2025-01-02 07:07 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("clubs", "0117_clubapprovalresponsetemplate"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField(model_name="event", name="ticket_drop_time",), | ||
migrations.RemoveField(model_name="event", name="ticket_order_limit",), | ||
migrations.CreateModel( | ||
name="TicketSettings", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
("order_limit", models.IntegerField(blank=True, null=True)), | ||
("drop_time", models.DateTimeField(blank=True, null=True)), | ||
("fee_charged_to_buyer", models.BooleanField(default=False)), | ||
( | ||
"event", | ||
models.OneToOneField( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="ticket_settings", | ||
to="clubs.event", | ||
), | ||
), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/clubs/migrations/0119_alter_ticketsettings_order_limit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0.4 on 2025-01-04 01:23 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("clubs", "0118_remove_event_ticket_drop_time_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="ticketsettings", | ||
name="order_limit", | ||
field=models.IntegerField(blank=True, default=10, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.