Commit 7c54d96e authored by gijs's avatar gijs

Added url field to attachment

parent f9d96349
# -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-12-17 10:10
from __future__ import unicode_literals
from django.db import migrations, models
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('playground', '0021_auto_20180601_1320'),
]
operations = [
migrations.AddField(
model_name='attachment',
name='url',
field=models.URLField(blank=True),
),
migrations.AlterField(
model_name='attachment',
name='attachment',
field=models.FileField(blank=True, null=True, upload_to=''),
),
migrations.AlterField(
model_name='score',
name='tags',
field=taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags'),
),
]
......@@ -5,7 +5,8 @@ from taggit.managers import TaggableManager
class Attachment(models.Model):
title = models.CharField(max_length=255)
attachment = models.FileField()
attachment = models.FileField(blank=True, null=True)
url = models.URLField(blank=True)
class Score(models.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment