permit blank payload in callbacks

This commit is contained in:
Thomas Steen Rasmussen 2017-04-08 10:55:40 +02:00
parent e5215830b0
commit e4e5688e3c
2 changed files with 22 additions and 1 deletions

View file

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-08 08:55
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shop', '0039_auto_20170403_1752'),
]
operations = [
migrations.AlterField(
model_name='epaycallback',
name='payload',
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True),
),
]

View file

@ -309,7 +309,7 @@ class EpayCallback(CreatedUpdatedModel, UUIDModel):
verbose_name_plural = 'Epay Callbacks' verbose_name_plural = 'Epay Callbacks'
ordering = ['-created'] ordering = ['-created']
payload = JSONField() payload = JSONField(blank=True)
md5valid = models.BooleanField(default=False) md5valid = models.BooleanField(default=False)
def __str__(self): def __str__(self):