Skip to content

Commit

Permalink
Increase payment_method field length
Browse files Browse the repository at this point in the history
  • Loading branch information
odero committed May 3, 2016
1 parent 60e249c commit 6e76315
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions django_pesapal/migrations/0005_auto_20160503_1036.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('django_pesapal', '0004_auto_20150812_0051'),
]

operations = [
migrations.AlterField(
model_name='transaction',
name='payment_method',
field=models.CharField(max_length=24, null=True),
preserve_default=True,
),
]
2 changes: 1 addition & 1 deletion django_pesapal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Transaction(models.Model):
amount = models.DecimalField(decimal_places=2, max_digits=10, default=0)
created = models.DateTimeField(auto_now_add=True)
payment_status = models.IntegerField(choices=TRANSACTION_STATUS, default=PENDING)
payment_method = models.CharField(max_length=16, null=True)
payment_method = models.CharField(max_length=24, null=True)

class Meta:
unique_together = (('merchant_reference', 'pesapal_transaction'),)
Expand Down

0 comments on commit 6e76315

Please sign in to comment.