Skip to content

Commit

Permalink
parkstay.models.Booking: make details blankable
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival committed Oct 19, 2017
1 parent 0931d52 commit 4aa1f0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions parkstay/migrations/0038_auto_20171019_1402.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-19 06:02
from __future__ import unicode_literals

import django.contrib.postgres.fields.jsonb
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('parkstay', '0037_auto_20171011_1734'),
]

operations = [
migrations.AlterField(
model_name='booking',
name='details',
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion parkstay/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ class Booking(models.Model):
legacy_name = models.CharField(max_length=255, blank=True,null=True)
arrival = models.DateField()
departure = models.DateField()
details = JSONField(null=True)
details = JSONField(null=True, blank=True)
booking_type = models.SmallIntegerField(choices=BOOKING_TYPE_CHOICES, default=0)
expiry_time = models.DateTimeField(blank=True, null=True)
cost_total = models.DecimalField(max_digits=8, decimal_places=2, default='0.00')
Expand Down

0 comments on commit 4aa1f0b

Please sign in to comment.