harryprince / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Make photos searchable in admin interface #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Seeing as it's so easy, why not make photos searchable in the admin
interface? They may have metadata which makes them easily findable with
keywords, wheras finding it via a gallery or browsing the pages of photos
may be alot harder.

*** admin_orig.py   2008-11-11 14:24:27.000000000 -0300
--- admin.py    2008-11-11 14:24:23.000000000 -0300
***************
*** 14,19 ****
--- 14,20 ----
  class PhotoAdmin(admin.ModelAdmin):
      list_display = ('title', 'date_taken', 'date_added', 'is_public',
'tags', 'view_count', 'admin_thumbnail')
      list_filter = ['date_added', 'is_public']
+     search_fields = ['title', 'title_slug', 'caption']
      list_per_page = 10
      prepopulated_fields = {'title_slug': ('title',)}

Original issue reported on code.google.com by ssadl...@googlemail.com on 12 Nov 2008 at 4:37

GoogleCodeExporter commented 9 years ago
Why not indeed. Thanks.

Original comment by justin.d...@gmail.com on 12 Nov 2008 at 4:39

GoogleCodeExporter commented 9 years ago
Added in r394.

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 5:40