Commit 550d1dca authored by alexandre's avatar alexandre

title field on attachments

parent 00fbb9ab
# -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-04-04 21:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('playground', '0015_auto_20180208_1159'),
]
operations = [
migrations.AddField(
model_name='attachment',
name='title',
field=models.CharField(default='Sans titre', max_length=255),
preserve_default=False,
),
]
......@@ -3,6 +3,7 @@ from django.contrib.postgres.fields import JSONField
class Attachment(models.Model):
title = models.CharField(max_length=255)
attachment = models.FileField()
......
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