From: Radek Czajka Date: Tue, 12 Mar 2019 13:34:19 +0000 (+0100) Subject: Extend the service URL field. X-Git-Tag: 22.4~3 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/413bf45b20e253acdf45c0e43d4f05b1ecf33c0d?ds=sidebyside;hp=53145befaa401c776854ac95f63e3d3bbd72fb89 Extend the service URL field. --- 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'