From 6fa2727c84486655ff755d987bf8fbf6e0f60ae6 Mon Sep 17 00:00:00 2001 From: Nico Vermaas <vermaas@astron.nl> Date: Tue, 12 Apr 2022 19:45:47 +0200 Subject: [PATCH] config max_length to 5120 to accomodate max macaroon size --- .../migrations/0017_auto_20220412_1944.py | 18 ++++++++++++++++++ atdb/taskdatabase/models.py | 2 +- .../templates/taskdatabase/index.html | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 atdb/taskdatabase/migrations/0017_auto_20220412_1944.py diff --git a/atdb/taskdatabase/migrations/0017_auto_20220412_1944.py b/atdb/taskdatabase/migrations/0017_auto_20220412_1944.py new file mode 100644 index 00000000..67eaed9c --- /dev/null +++ b/atdb/taskdatabase/migrations/0017_auto_20220412_1944.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.4 on 2022-04-12 17:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('taskdatabase', '0016_auto_20220412_1356'), + ] + + operations = [ + migrations.AlterField( + model_name='configuration', + name='value', + field=models.CharField(max_length=5120), + ), + ] diff --git a/atdb/taskdatabase/models.py b/atdb/taskdatabase/models.py index 3965e04c..3a770aa0 100644 --- a/atdb/taskdatabase/models.py +++ b/atdb/taskdatabase/models.py @@ -185,7 +185,7 @@ class Configuration(models.Model): filter = models.CharField(max_length=30, blank=True, null=True) key = models.CharField(max_length=50) # large value needed to hold the dcache token - value = models.CharField(max_length=3000) + value = models.CharField(max_length=5120) # the representation of the value in the REST API def __str__(self): diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html index 61b27274..a1c245ea 100644 --- a/atdb/taskdatabase/templates/taskdatabase/index.html +++ b/atdb/taskdatabase/templates/taskdatabase/index.html @@ -34,7 +34,7 @@ {% include 'taskdatabase/pagination.html' %} </div> </div> - <p class="footer"> Version 1.0.0 (12 apr 2021 - 13:00) + <p class="footer"> Version 1.0.0 (12 apr 2021 - 20:00) </div> -- GitLab