From 413bf45b20e253acdf45c0e43d4f05b1ecf33c0d Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 12 Mar 2019 14:34:19 +0100 Subject: [PATCH 1/1] Extend the service URL field. --- .../migrations/0003_auto_20190312_0813.py | 19 +++++++++++++++++++ cas_provider/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 cas_provider/migrations/0003_auto_20190312_0813.py diff --git a/cas_provider/migrations/0003_auto_20190312_0813.py b/cas_provider/migrations/0003_auto_20190312_0813.py new file mode 100644 index 0000000..ab74d28 --- /dev/null +++ b/cas_provider/migrations/0003_auto_20190312_0813.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cas_provider', '0002_auto_20140920_1644'), + ] + + operations = [ + migrations.AlterField( + model_name='serviceticket', + name='service', + field=models.URLField(max_length=2048, verbose_name='service'), + ), + ] diff --git a/cas_provider/models.py b/cas_provider/models.py index 0dd8b9a..14c2294 100644 --- a/cas_provider/models.py +++ b/cas_provider/models.py @@ -36,7 +36,7 @@ class BaseTicket(models.Model): class ServiceTicket(BaseTicket): user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user'), on_delete=models.CASCADE) - service = models.URLField(_('service')) + service = models.URLField(_('service'), max_length=2048) prefix = 'ST' -- 2.20.1