Generating an InlineModelAdmin Form on the fly in Django
I'm adding drag/drop uploading to the django admin for one of our open source projects called Stager. A blog post about that will follow, it's not screen-shot ready yet. While doing this I knew we needed a pretty seamless transition after the upload finished, and that we would have to refresh the inline. I didn't want a full page refresh, so let's ajax it in. For these examples just assume that we have a parent CompAdmin which has an model of Comp and an inline called CompSlideInline. We store the…