Hi, On Mon, 2006-04-10 at 15:36 +0100, Graham King wrote: > Is there a way to control the values that appear in a pulldown (a > ForeignKey field) on the admin interface ? > > I would like the ForeignKey to only be assignable to a subset of all > values.
Is the limit_choices_to option suitable? It lets you limit your choices based on some query. http://www.djangoproject.com/documentation/model_api/#many-to-one-relationships Russell --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---