Almost like that, except lets say you had a field you wanted to use as a list box but its contents depend on what you select in another field. Meaning, you want to use the results of a database query to populate it so you can select an item from the results. Not sure if my explanation is making sense ;)
Thanks Anthony On Wed, Nov 9, 2011 at 1:58 PM, kenneth gonsalves <law...@thenilgiris.com>wrote: > On Wed, 2011-11-09 at 13:41 +0200, Anthony Musaluke wrote: > > I a new to django but have been following the tutorial. I have a > > question on your answer: Which file would you place this code in if > > you wanted to have that filtering visible in the site admin interface. > > Would you need to create a custom selection field from which you can > > pick to populate the relevant model field? I am not so sure yet how to > > tie that in since it looks like its using the DB access API at this > > stage? > > are you referring to this: > > https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter > > which is normally added to admin.py > -- > regards > Kenneth Gonsalves > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.