#25 Increase bookmark URL length limit

This commit is contained in:
Sascha Ißbrücker 2020-09-13 09:05:50 +02:00
parent 348a536aa3
commit 8a208cad07
2 changed files with 19 additions and 1 deletions

View File

@ -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),
),
]

View File

@ -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)