0001-linkcell-link_page-can-be-empty-7400-cont.patch
combo/data/migrations/0008_auto_20150529_1504.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
from __future__ import unicode_literals |
|
3 | ||
4 |
from django.db import models, migrations |
|
5 | ||
6 | ||
7 |
class Migration(migrations.Migration): |
|
8 | ||
9 |
dependencies = [ |
|
10 |
('data', '0007_auto_20150529_1003'), |
|
11 |
] |
|
12 | ||
13 |
operations = [ |
|
14 |
migrations.AlterField( |
|
15 |
model_name='linkcell', |
|
16 |
name='link_page', |
|
17 |
field=models.ForeignKey(related_name='link_cell', blank=True, to='data.Page', null=True), |
|
18 |
preserve_default=True, |
|
19 |
), |
|
20 |
] |
combo/data/models.py | ||
---|---|---|
442 | 442 |
class LinkCell(CellBase): |
443 | 443 |
title = models.CharField(_('Title'), max_length=150, blank=True) |
444 | 444 |
url = models.URLField(_('URL'), blank=True) |
445 |
link_page = models.ForeignKey('data.Page', related_name='link_cell', null=True) |
|
445 |
link_page = models.ForeignKey('data.Page', related_name='link_cell', blank=True, null=True)
|
|
446 | 446 |
anchor = models.CharField(_('Anchor'), max_length=150, blank=True) |
447 | 447 | |
448 | 448 |
template_name = 'combo/link-cell.html' |
449 |
- |