#25 Increase bookmark URL length limit
This commit is contained in:
parent
348a536aa3
commit
8a208cad07
18
bookmarks/migrations/0003_auto_20200913_0656.py
Normal file
18
bookmarks/migrations/0003_auto_20200913_0656.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
@ -29,7 +29,7 @@ def build_tag_string(tag_names: List[str], delimiter: str = ','):
|
|||||||
|
|
||||||
|
|
||||||
class Bookmark(models.Model):
|
class Bookmark(models.Model):
|
||||||
url = models.URLField()
|
url = models.URLField(max_length=2048)
|
||||||
title = models.CharField(max_length=512)
|
title = models.CharField(max_length=512)
|
||||||
description = models.TextField()
|
description = models.TextField()
|
||||||
website_title = models.CharField(max_length=512, blank=True, null=True)
|
website_title = models.CharField(max_length=512, blank=True, null=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user