aboutsummaryrefslogtreecommitdiffstats
path: root/src/account
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-07-27 18:52:03 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-07-27 18:52:03 +0000
commit4d7fc79eabf45014960117ba70fd29add07327c2 (patch)
tree88e8964c0477c5d92bdde1964e58a0e7f096e8e1 /src/account
parentdc115112cd0de9764ac6d8b4fb2dd1c0fc37bf59 (diff)
parenta6de767f02153b46d964d551f10bc9561aa28d0c (diff)
Merge "Make static OPNFV references dynamic"
Diffstat (limited to 'src/account')
-rw-r--r--src/account/migrations/0005_auto_20200723_2100.py23
-rw-r--r--src/account/models.py2
2 files changed, 25 insertions, 0 deletions
diff --git a/src/account/migrations/0005_auto_20200723_2100.py b/src/account/migrations/0005_auto_20200723_2100.py
new file mode 100644
index 0000000..d995f80
--- /dev/null
+++ b/src/account/migrations/0005_auto_20200723_2100.py
@@ -0,0 +1,23 @@
+# Generated by Django 2.2 on 2020-07-23 21:00
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('account', '0004_downtime'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='lab',
+ name='lab_info_link',
+ field=models.URLField(null=True),
+ ),
+ migrations.AddField(
+ model_name='lab',
+ name='project',
+ field=models.CharField(default='LaaS', max_length=100),
+ ),
+ ]
diff --git a/src/account/models.py b/src/account/models.py
index 9624a53..03b31df 100644
--- a/src/account/models.py
+++ b/src/account/models.py
@@ -205,6 +205,8 @@ class Lab(models.Model):
# This token must apear in API requests from this lab
api_token = models.CharField(max_length=50)
description = models.CharField(max_length=240)
+ lab_info_link = models.URLField(null=True)
+ project = models.CharField(default='LaaS', max_length=100)
@staticmethod
def make_api_token():