From 21919476d791c24be54a447f9b7e32f74d3bd4b4 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Fri, 9 Nov 2018 11:10:03 -0500 Subject: Renders Pod Destriptor File earlier Currently, the PDF is rendered 'on-demand' every time you visit the booking detail page. This change renders the pdf once and saves it in the booking model. Advantages: - saves computation of re-rendering pdf constantly - fixes issue where pdf fails to render after booking expires Change-Id: I58d20fadce088d78ebd22f1d6f67cab371823542 Signed-off-by: Parker Berberian --- src/booking/migrations/0002_booking_pdf.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/booking/migrations/0002_booking_pdf.py (limited to 'src/booking/migrations') diff --git a/src/booking/migrations/0002_booking_pdf.py b/src/booking/migrations/0002_booking_pdf.py new file mode 100644 index 0000000..53232c9 --- /dev/null +++ b/src/booking/migrations/0002_booking_pdf.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1 on 2018-11-09 16:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('booking', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='booking', + name='pdf', + field=models.TextField(blank=True, default=''), + ), + ] -- cgit 1.2.3-korg