Make complete_at allow null
This commit is contained in:
parent
50d9eb1c50
commit
95a1b8fa20
3 changed files with 22 additions and 2 deletions
|
@ -1006,7 +1006,7 @@ class OrderConfirmationView(DetailView, FormView):
|
|||
)
|
||||
}
|
||||
}
|
||||
clear_all_session_vars(request)
|
||||
#clear_all_session_vars(request)
|
||||
return JsonResponse(context)
|
||||
else:
|
||||
logger.debug(
|
||||
|
|
20
hosting/migrations/0063_auto_20201223_0612.py
Normal file
20
hosting/migrations/0063_auto_20201223_0612.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2020-12-23 06:12
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hosting', '0062_incompletesubscriptions'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='incompletesubscriptions',
|
||||
name='completed_at',
|
||||
field=models.DateTimeField(null=True),
|
||||
),
|
||||
]
|
|
@ -745,7 +745,7 @@ class StripeTaxRate(AssignPermissionsMixin, models.Model):
|
|||
|
||||
class IncompleteSubscriptions(AssignPermissionsMixin, models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
completed_at = models.DateTimeField()
|
||||
completed_at = models.DateTimeField(null=True)
|
||||
subscription_id = models.CharField(max_length=100)
|
||||
subscription_status = models.CharField(max_length=30)
|
||||
name = models.CharField(max_length=50)
|
||||
|
|
Loading…
Reference in a new issue