links can be longer

This commit is contained in:
j 2017-12-19 13:44:32 +01:00
parent e852a28105
commit 76b9576f05
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-19 12:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0005_auto_20171219_1032'),
]
operations = [
migrations.AlterField(
model_name='link',
name='url',
field=models.URLField(max_length=4096),
),
]

View File

@ -321,11 +321,14 @@ class Image(models.Model):
class Link(models.Model):
content = models.ForeignKey('Content')
url = models.URLField()
url = models.URLField(max_length=4096)
description = models.TextField(blank=True, null=True)
date = models.DateTimeField(auto_now_add=True)
order = models.IntegerField(blank=True, null=True)
def __unicode__(self):
return self.url
class Videos(models.Model): # not used
sha1 = models.CharField(max_length=50)
href = models.CharField(max_length=255)