From 752f31b9722d15a7857e5ea56966e5f17141d82e Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 26 Feb 2018 17:52:25 -0500 Subject: Limit User Booking Length and Extensions Jira: PHAROS-363 Bookings can now only be 3 weeks upon creation with a maximum of 2 1 week extensions. Change-Id: I677770de3f62f188d23e60be6d71b42b25bf007e Signed-off-by: Sawyer Bergeron --- src/booking/migrations/0004_booking_ext_count.py | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/booking/migrations/0004_booking_ext_count.py (limited to 'src/booking/migrations/0004_booking_ext_count.py') diff --git a/src/booking/migrations/0004_booking_ext_count.py b/src/booking/migrations/0004_booking_ext_count.py new file mode 100644 index 0000000..6bcc3ce --- /dev/null +++ b/src/booking/migrations/0004_booking_ext_count.py @@ -0,0 +1,27 @@ +############################################################################## +# Copyright (c) 2018 Sawyer Bergeron and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('booking', '0003_auto_20180108_2024'), + ] + + operations = [ + migrations.AddField( + model_name='booking', + name='ext_count', + field=models.IntegerField(default=2), + ), + ] -- cgit 1.2.3-korg