diff --git a/django_pesapal/migrations/0005_auto_20160503_1036.py b/django_pesapal/migrations/0005_auto_20160503_1036.py new file mode 100644 index 0000000..2bd47d9 --- /dev/null +++ b/django_pesapal/migrations/0005_auto_20160503_1036.py @@ -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, + ), + ] diff --git a/django_pesapal/models.py b/django_pesapal/models.py index f141ee9..d827d9a 100644 --- a/django_pesapal/models.py +++ b/django_pesapal/models.py @@ -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'),)