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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s