# HG changeset patch # User neko259 # Date 2015-04-24 09:54:09 # Node ID 685f1d163a09d9ae06a398d3cff36eb63e8684fd # Parent fb183582b6d090521ba131cee65092098555dd06 Allow searching posts by IP in the admin site diff --git a/boards/admin.py b/boards/admin.py --- a/boards/admin.py +++ b/boards/admin.py @@ -6,9 +6,9 @@ from django.utils.translation import uge @admin.register(Post) class PostAdmin(admin.ModelAdmin): - list_display = ('id', 'title', 'text') + list_display = ('id', 'title', 'text', 'poster_ip') list_filter = ('pub_time',) - search_fields = ('id', 'title', 'text') + search_fields = ('id', 'title', 'text', 'poster_ip') exclude = ('referenced_posts', 'refmap') readonly_fields = ('poster_ip', 'threads', 'thread', 'images', 'uid')