Skip to content

Commit 7cd06b6

Browse files
multiglczpython
authored andcommitted
fix migrations for python 3 (#15)
1 parent aa752fa commit 7cd06b6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
import cms.models.pluginmodel
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('djangocms_file', '0003_rename_file_field_20160115_1904'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='file',
17+
name='source',
18+
field=models.FileField(upload_to=cms.models.pluginmodel.get_plugin_media_path, verbose_name='source'),
19+
),
20+
migrations.AlterField(
21+
model_name='file',
22+
name='target',
23+
field=models.CharField(blank=True, max_length=100, choices=[('', 'same window'), ('_blank', 'new window'), ('_parent', 'parent window'), ('_top', 'topmost frame')], help_text='Optional link target.', default='', verbose_name='target'),
24+
),
25+
]

0 commit comments

Comments
 (0)