Skip to content

Commit

Permalink
Do not detect new migrations if the templates list has been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed May 1, 2015
1 parent 52bb93a commit 2eab48c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zinnia/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import mptt.fields
import tagging.fields

import zinnia.settings
import zinnia.models_bases.entry


Expand Down Expand Up @@ -117,13 +118,14 @@ class Migration(migrations.Migration):
default='zinnia/_entry_detail.html',
help_text="Template used to display the entry's content.",
max_length=250, verbose_name='content template',
choices=[('zinnia/_entry_detail.html',
'Default template')])),
choices=[('zinnia/_entry_detail.html', 'Default template')]
+ zinnia.settings.ENTRY_CONTENT_TEMPLATES)),
('detail_template', models.CharField(
default='entry_detail.html',
help_text="Template used to display the entry's detail page.", # noqa
max_length=250, verbose_name='detail template',
choices=[('entry_detail.html', 'Default template')])),
choices=[('entry_detail.html', 'Default template')]
+ zinnia.settings.ENTRY_DETAIL_TEMPLATES)),
('categories', models.ManyToManyField(
related_name='entries',
verbose_name='categories', to='zinnia.Category',
Expand Down

0 comments on commit 2eab48c

Please sign in to comment.