Skip to content

Commit

Permalink
refactor migration
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha-mangena committed Jul 12, 2024
1 parent 752ad60 commit 791303f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/meshapi/migrations/0010_member_payment_preference.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
from django.db import migrations, models

class PaymentPreference(models.TextChoices):
CASH = "cash", "Cash"
STRIPE = "stripe", "Stripe"
NONE = None, "None"

class Migration(migrations.Migration):
dependencies = [
("meshapi", "0009_member_additional_phone_numbers_alter_member_phone_number"),
]

operations = [
migrations.AlterField(
migrations.AddField(
model_name="member",
name="payment_preference",
field=models.CharField(
max_length=6,
choices=PaymentPreference.choices,
default=PaymentPreference.NONE,
choices=[
("cash", "Cash"),
("stripe", "Stripe"),
(None, "None"),
],
default=None,
help_text="Preferred payment method for this member",
null=True,
blank=True,
),
),
]

0 comments on commit 791303f

Please sign in to comment.