Added blog.Entry.attachments
This commit is contained in:
parent
8b1c2cb3c6
commit
6403802932
|
@ -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'),
|
||||
),
|
||||
]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue