Add title to bookmark

This commit is contained in:
2021-03-09 19:59:09 -06:00
parent 13fc58121a
commit 80a1048533
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.1.7 on 2021-02-25 03:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookmarks', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='bookmark',
name='title',
field=models.CharField(max_length=255, null=True),
),
]

View File

@@ -1,4 +1,5 @@
from django.db import models
class Bookmark(models.Model):
title = models.CharField(max_length=255,null=True)
url = models.URLField(max_length=2048)