Hi,
I've this admin.py:
----------------------------
from chessemail.GAME.models import Game
from django.contrib import admin
class GameAdmin(admin.ModelAdmin):
list_display = ('id', 'white', 'black', 'time_days_W',
'time_days_B', 'move_game', 'last_move_W', 'last_move_B', 'is_active')
ordering = ["id"]
search_fields = ['id','white__user__username','black__user__username',]
list_filter = ('is_active',)
admin.site.register(Game,GameAdmin)
-----------------------------------
When I search a string return only the query of 'white__user__username'.
Can I search by ( 'white__user__username' OR 'black__user__username' ) ??
Thanks,
Alfredo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---