diff options
Diffstat (limited to 'app/jrnl')
-rw-r--r-- | app/jrnl/admin.py | 4 | ||||
-rw-r--r-- | app/jrnl/templates/horizontal_select.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py index e77b931..ac950df 100644 --- a/app/jrnl/admin.py +++ b/app/jrnl/admin.py @@ -15,7 +15,7 @@ class EntryAdmin(OSMGeoAdmin): form = LGEntryForm def render_change_form(self, request, context, *args, **kwargs): - context['adminform'].form.fields['featured_image'].queryset = LuxImage.objects.all()[:50] + context['adminform'].form.fields['featured_image'].queryset = LuxImage.objects.all()[:200] return super(EntryAdmin, self).render_change_form(request, context, *args, **kwargs) def formfield_for_dbfield(self, db_field, **kwargs): @@ -52,13 +52,13 @@ class EntryAdmin(OSMGeoAdmin): 'meta_description', 'template_name', 'enable_comments', + 'featured_image', ), }), ('Extra', { 'fields': ( 'field_notes', 'books', - 'featured_image', ), 'classes': ( 'collapse', diff --git a/app/jrnl/templates/horizontal_select.html b/app/jrnl/templates/horizontal_select.html index 4b0a2a1..61dcfd8 100644 --- a/app/jrnl/templates/horizontal_select.html +++ b/app/jrnl/templates/horizontal_select.html @@ -6,7 +6,7 @@ <ul{% if id %} id="{{ id }}_{{ index }}"{% endif %}> {% endif %} {% for option in options %} - <li data-imageid="{{option.value}}">{% include option.template_name with widget=option %}</li> + <li data-imageid="{{option.value}}" data-loopcounter="{{forloop.parentloop.counter}}">{% include option.template_name with widget=option %}</li> {% endfor %} {% if group %} </ul> |