EditInline for GenericForiegnKey II
This is an update to snippet 765 as I was having trouble getting it to work on branches/newforms-admin @ r7771.
There are just a few minor changes to the previous snippet, all simple stuff. I went ahead an added can_delete and can_order options that the previous snippet didn't include.
More details in blog post.
from django.newforms.models needs to be
from django.forms.models now in 1.0 alpha.
I would also change the default values for
id_field_name to the values they use in the docs, which means you don't have to set them when using admin unless you use other names of cource.
ct_field_name = 'content_type'
id_field_name = 'object_id'