links can be longer
This commit is contained in:
parent
e852a28105
commit
76b9576f05
20
content/migrations/0006_auto_20171219_1243.py
Normal file
20
content/migrations/0006_auto_20171219_1243.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user