summaryrefslogtreecommitdiffstats
path: root/dashboard/src/booking/migrations
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2018-02-26 17:52:25 -0500
committerSawyer Bergeron <sbergeron@iol.unh.edu>2018-03-26 18:42:42 +0000
commitdd7e16215d3bf6bb21a6d4325171d9d556c5da2d (patch)
tree4bcc357d920e29c3f74e1a7879f8c77d5c3097c3 /dashboard/src/booking/migrations
parent2085e52073396b265789fecd44a56c3b4e0d4970 (diff)
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 <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src/booking/migrations')
-rw-r--r--dashboard/src/booking/migrations/0004_booking_ext_count.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/dashboard/src/booking/migrations/0004_booking_ext_count.py b/dashboard/src/booking/migrations/0004_booking_ext_count.py
new file mode 100644
index 0000000..6bcc3ce
--- /dev/null
+++ b/dashboard/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),
+ ),
+ ]