summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cd9153a)
(cherry picked from commit
e034617)
def change_view(self, request, object_id, extra_context=None):
if 'advanced' not in request.GET:
self.form = forms.ModelForm
def change_view(self, request, object_id, extra_context=None):
if 'advanced' not in request.GET:
self.form = forms.ModelForm
- self.fields = ('title', 'description', 'gazeta_link', 'wiki_link')
+ self.fields = ('title', 'description', 'gazeta_link', 'wiki_link', 'recommended')
self.readonly_fields = ('title',)
else:
self.form = TaggableModelForm
self.readonly_fields = ('title',)
else:
self.form = TaggableModelForm
--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('catalogue', '0014_auto_20170627_1442'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='book',
+ name='recommended',
+ field=models.BooleanField(default=False, verbose_name='recommended'),
+ ),
+ ]
gazeta_link = models.CharField(blank=True, max_length=240)
wiki_link = models.CharField(blank=True, max_length=240)
print_on_demand = models.BooleanField(_('print on demand'), default=False)
gazeta_link = models.CharField(blank=True, max_length=240)
wiki_link = models.CharField(blank=True, max_length=240)
print_on_demand = models.BooleanField(_('print on demand'), default=False)
+ recommended = models.BooleanField(_('recommended'), default=False)
# files generated during publication
cover = EbookField(
# files generated during publication
cover = EbookField(