diff --git a/combo/apps/kb/migrations/0002_auto_20200203_1137.py b/combo/apps/kb/migrations/0002_auto_20200203_1137.py new file mode 100644 index 00000000..bb767910 --- /dev/null +++ b/combo/apps/kb/migrations/0002_auto_20200203_1137.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.17 on 2020-02-03 10:37 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('kb', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='latestpageupdatescell', + name='limit', + field=models.PositiveSmallIntegerField(default=10, verbose_name='Maximum number of entries'), + ), + ] diff --git a/combo/apps/kb/models.py b/combo/apps/kb/models.py index 2714e063..59b39a34 100644 --- a/combo/apps/kb/models.py +++ b/combo/apps/kb/models.py @@ -29,7 +29,7 @@ class LatestPageUpdatesCell(CellBase): Page, on_delete=models.SET_NULL, null=True, blank=True, verbose_name=_('Root Page'), related_name='kb_latest_page_updates_cell_root_page') limit = models.PositiveSmallIntegerField( - _('Maximum number of entries'), null=True, blank=True) + _('Maximum number of entries'), default=10) template_name = 'combo/latest-page-updates-cell.html'