Merge pull request #30 from sissbruecker/feature/#25-increase-url-limit

#25 Increase bookmark URL length limit
This commit is contained in:
Sascha Ißbrücker 2020-09-13 09:07:22 +02:00 committed by GitHub
commit 3373667c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)