diff --git a/src/shop/migrations/0047_auto_20170522_1942.py b/src/shop/migrations/0047_auto_20170522_1942.py new file mode 100644 index 00000000..ed1edaaf --- /dev/null +++ b/src/shop/migrations/0047_auto_20170522_1942.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.5 on 2017-05-22 17:42 +from __future__ import unicode_literals + +import django.contrib.postgres.fields.jsonb +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('shop', '0046_coinifyapirequest_method'), + ] + + operations = [ + migrations.AlterField( + model_name='coinifyapirequest', + name='response', + field=django.contrib.postgres.fields.jsonb.JSONField(), + ), + ] diff --git a/src/shop/models.py b/src/shop/models.py index c6f6579f..4911d11c 100644 --- a/src/shop/models.py +++ b/src/shop/models.py @@ -430,7 +430,7 @@ class CoinifyAPIRequest(CreatedUpdatedModel): order = models.ForeignKey('shop.Order', related_name="coinify_api_requests", on_delete=models.PROTECT) method = models.CharField(max_length=100) payload = JSONField() - response = models.TextField() + response = JSONField() def __str__(self): return 'order %s api request %s' % (self.order.id, self.method)