From 8a208cad076883e9e2db90689916db0d9825a6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sun, 13 Sep 2020 09:05:50 +0200 Subject: [PATCH] #25 Increase bookmark URL length limit --- .../migrations/0003_auto_20200913_0656.py | 18 ++++++++++++++++++ bookmarks/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 bookmarks/migrations/0003_auto_20200913_0656.py diff --git a/bookmarks/migrations/0003_auto_20200913_0656.py b/bookmarks/migrations/0003_auto_20200913_0656.py new file mode 100644 index 0000000..4c3758e --- /dev/null +++ b/bookmarks/migrations/0003_auto_20200913_0656.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.13 on 2020-09-13 06:56 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bookmarks', '0002_auto_20190629_2303'), + ] + + operations = [ + migrations.AlterField( + model_name='bookmark', + name='url', + field=models.URLField(max_length=2048), + ), + ] diff --git a/bookmarks/models.py b/bookmarks/models.py index 5821ff6..e3305e6 100644 --- a/bookmarks/models.py +++ b/bookmarks/models.py @@ -29,7 +29,7 @@ def build_tag_string(tag_names: List[str], delimiter: str = ','): class Bookmark(models.Model): - url = models.URLField() + url = models.URLField(max_length=2048) title = models.CharField(max_length=512) description = models.TextField() website_title = models.CharField(max_length=512, blank=True, null=True)