Given a url like:
How can I access
foo_id from within a
CreateView instance in order to populate a foreign key form field? I’ve tried a number of approaches (most recently overriding
get_context_data and trying to pull the value out of the request object or from kwargs) without success.
There may be a better way to do this (e.g. formsets), but I’d like to make as few changes to my existing flow.