Django — Formfield for ForeignKey

I’ve googled formfield_for_foreignkey on many occasions to look up what parameters it accepts, but it always fails me.

I bet you anything posting this blog will make it to the top of the google results and serve as a redirect : )

The docs on formfield for foreignkey:

http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_foreignkey

The docs on formfield for manytomany:

http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany

The docs on formfield for choice field:

http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_choice_field

1 Comment

  1. J says:

    “I bet you anything posting this blog will make it to the top of the google results and serve as a redirect”

    welp, guess I owe you an “anything” 😛

Leave a Comment