Skip to content

Commit

Permalink
Merge pull request breatheco-de#1401 from tommygonzaleza/development
Browse files Browse the repository at this point in the history
Added boolean is_credit_card to paymentmethod
  • Loading branch information
tommygonzaleza authored Jun 26, 2024
2 parents 6d5f716 + 0b2cdca commit 9ca3e94
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.0.6 on 2024-06-26 21:24

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('payments', '0048_remove_serviceset_academy_remove_serviceset_services_and_more'),
]

operations = [
migrations.AddField(
model_name='paymentmethod',
name='is_credit_card',
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions breathecode/payments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,7 @@ class PaymentMethod(models.Model):
"""
academy = models.ForeignKey(Academy, on_delete=models.CASCADE, blank=True, null=True, help_text='Academy owner')
title = models.CharField(max_length=120, null=False, blank=False)
is_credit_card = models.BooleanField(default=False, null=False, blank=False)
description = models.CharField(max_length=255, help_text='Description of the payment method')
third_party_link = models.URLField(blank=True,
null=True,
Expand Down
1 change: 1 addition & 0 deletions breathecode/payments/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ class GetPaymentMethod(serpy.Serializer):
id = serpy.Field()
title = serpy.Field()
lang = serpy.Field()
is_credit_card = serpy.Field()
description = serpy.Field()
third_party_link = serpy.Field()
academy = GetAcademySmallSerializer(required=False, many=False)

0 comments on commit 9ca3e94

Please sign in to comment.