Skip to content

Commit

Permalink
Remove voucher columns from Grant model
Browse files Browse the repository at this point in the history
Removed the columns `pretix_voucher_id`, `voucher_code`, and
`voucher_email_sent_at` from the `Grant` model. These columns are no
longer needed as we now use the `ConferenceVoucher` table for voucher
management.
  • Loading branch information
estyxx committed Jan 28, 2025
1 parent 437e069 commit 200c32e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
5 changes: 0 additions & 5 deletions backend/grants/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,6 @@ class GrantAdmin(ExportMixin, ConferencePermissionMixin, admin.ModelAdmin):
"country_type",
"applicant_reply_sent_at",
"applicant_reply_deadline",
"voucher_code",
"voucher_email_sent_at",
"created",
)
list_filter = (
Expand Down Expand Up @@ -461,9 +459,6 @@ class GrantAdmin(ExportMixin, ConferencePermissionMixin, admin.ModelAdmin):
"total_amount",
"applicant_reply_sent_at",
"applicant_reply_deadline",
"pretix_voucher_id",
"voucher_code",
"voucher_email_sent_at",
"internal_notes",
)
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.1.4 on 2025-01-28 16:45

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('grants', '0027_grantconfirmpendingstatusproxy'),
]

operations = [
migrations.RemoveField(
model_name='grant',
name='pretix_voucher_id',
),
migrations.RemoveField(
model_name='grant',
name='voucher_code',
),
migrations.RemoveField(
model_name='grant',
name='voucher_email_sent_at',
),
]
13 changes: 0 additions & 13 deletions backend/grants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,6 @@ class ApprovedType(models.TextChoices):
)

# Voucher Management
voucher_code = models.TextField(
help_text=_("Voucher code generated for this grant."),
blank=True,
null=True,
)
pretix_voucher_id = models.IntegerField(
help_text=_("ID of the voucher in the Pretix database"),
blank=True,
null=True,
)
voucher_email_sent_at = models.DateTimeField(
help_text=_("When the email was last sent"), blank=True, null=True
)
internal_notes = models.TextField(
_("Internal Notes"),
help_text=_("Internal notes only available to the Financial Aid Commettie"),
Expand Down

0 comments on commit 200c32e

Please sign in to comment.