Replicate django's admin interface for inline many-to-many input in a view
===

I asked [this question](http://stackoverflow.com/questions/2503243/django-form-linking-2-models-by-many-to-many-field) a few years ago, but upon revisiting the issue, I find that I haven't found the result I'm looking for.

Basically, using Django's admin interface, I can attach one model to another as an inline: 

    class EventAdmin(admin.TabularInline):
        model = Event

    class ActorAdmin(admind.ModelAdmin):
        inlines = [
            EventInline,
        ]
    admin.site.register(Actor,ActorAdmin)

In this case, Actor has a many-to-many connection to Event.

How can I replicate this inline ability in a view?  I want to be able to:

    A) Select an Event from existing Events to be attached to an Actor
    B) Create a new Event to be attached to an Actor

Am I chasing this in the right way?  Is there another technique I should be pursuing?