Added blog.Entry.attachments

This commit is contained in:
Felipe Martín 2016-03-21 22:50:59 +01:00
parent 8b1c2cb3c6
commit 6403802932
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-21 21:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_attachment'),
]
operations = [
migrations.AddField(
model_name='entry',
name='attachments',
field=models.ManyToManyField(blank=True, to='blog.Attachment'),
),
]

View File

@ -38,6 +38,7 @@ class Entry(models.Model):
related_name='author'
)
tags = models.ManyToManyField('Tag', blank=True)
attachments = models.ManyToManyField('Attachment', blank=True)
def __unicode__(self):
return self.title