Description

When the user clicks "Add" while viewing a changelist that has been filtered in some manner, any editable fields that are specified in the filtering should default to the filtering value. (If the users is restricting the change list in some manner, it's likely they're only dealing with objects of that type.)

This is a convenience feature but is nice to have. See the (soon to be) attached patch for an initial implementation. I'd like to get some feedback on the patch because I'm unsure of my implementation of the get_add_query_string.

I have a feeling that this won't be picked up because there's already a refactoring of the admin interface going on (see the newforms-admin branch in SVN); once it's completed, it will be much easier to write your own customizations to get specific behavior you want.

One problem: it is only likely that the person will want those fields filled in. If, for instance, they have been doing something else then come back to the list and press 'Add', it may be confusing/dangerous if some fields are already filled in. Personally, I can think of some other instances when I wouldn't want this at all.

Also, there is the problem of how this might interact with other ways of setting default values, and there is ubernostrum's point that it should hopefully soon be easier to add customisations like this. I suspect it is already possible to do via some javascript (using window.history ?).