aboutsummaryrefslogtreecommitdiffstats
path: root/src/booking/models.py
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
commit752f31b9722d15a7857e5ea56966e5f17141d82e (patch)
tree1ec921a2d7249b66864399f2487f65d22ffc7423 /src/booking/models.py
parentb0ef65a9126dc661a9eff59840f1d64f875003f4 (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 'src/booking/models.py')
-rw-r--r--src/booking/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/booking/models.py b/src/booking/models.py
index 9156484..8762d46 100644
--- a/src/booking/models.py
+++ b/src/booking/models.py
@@ -55,6 +55,7 @@ class Booking(models.Model):
installer = models.ForeignKey(Installer, models.DO_NOTHING, null=True)
scenario = models.ForeignKey(Scenario, models.DO_NOTHING, null=True)
purpose = models.CharField(max_length=300, blank=False)
+ ext_count = models.IntegerField(default=2)
class Meta:
db_table = 'booking'