Extend the service URL field.
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 12 Mar 2019 13:34:19 +0000 (14:34 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 12 Mar 2019 13:34:19 +0000 (14:34 +0100)
cas_provider/migrations/0003_auto_20190312_0813.py [new file with mode: 0644]
cas_provider/models.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 (file)
index 0000000..ab74d28
--- /dev/null
@@ -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'),
+        ),
+    ]
index 0dd8b9a..14c2294 100644 (file)
@@ -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'