summaryrefslogtreecommitdiff
path: root/app/jrnl/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-09-02 09:38:33 -0600
committerluxagraf <sng@luxagraf.net>2018-09-02 09:38:33 -0600
commit140ee80f0fe1d1d48f67612c1389ca7c2fc94f71 (patch)
tree3d9a783baec079cdf6f82593dcbb5110ca63b88a /app/jrnl/admin.py
parent6925c8dcaf006b6d80c005672d7e2738f7af8b12 (diff)
changed admin featured image widget
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r--app/jrnl/admin.py4
1 files changed, 2 insertions, 2 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',