diff --git a/icekit_events/plugins/event_content_listing/migrations/0003_eventcontentlistingitem_no_items_message.py b/icekit_events/plugins/event_content_listing/migrations/0003_eventcontentlistingitem_no_items_message.py new file mode 100644 index 0000000..0e38ddd --- /dev/null +++ b/icekit_events/plugins/event_content_listing/migrations/0003_eventcontentlistingitem_no_items_message.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ik_event_listing', '0002_auto_20170222_1136'), + ] + + operations = [ + migrations.AddField( + model_name='eventcontentlistingitem', + name='no_items_message', + field=models.CharField(blank=True, help_text=b'Message to show if there are not items in listing.', null=True, max_length=255), + ), + ] diff --git a/icekit_events/plugins/event_content_listing/templates/icekit_events/plugins/event_content_listing/default.html b/icekit_events/plugins/event_content_listing/templates/icekit_events/plugins/event_content_listing/default.html index 055e5cb..533ae30 100644 --- a/icekit_events/plugins/event_content_listing/templates/icekit_events/plugins/event_content_listing/default.html +++ b/icekit_events/plugins/event_content_listing/templates/icekit_events/plugins/event_content_listing/default.html @@ -2,8 +2,7 @@ {% for event in instance.get_items %} {% include "icekit_events/plugins/event_content_listing/_event.html" %} {% empty %} -