On 1/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/11/06, Maniac <[EMAIL PROTECTED]> wrote: > > This will work only in Admin but authentication generally isn't tied to > > it. I recall that people in django-users were interested in automatic > > user assignment to work in any view and they didn't want to insert > > "SomeModel.created_by=request.user" in every view. It's expected to work > > just like auto_now fields. > > I don't see a need to add this functionality for use beyond the scope > of the admin site. The auto_now options aren't coupled to a request, > so they're a special case. Coupling a request's user object to > manipulators is something we shouldn't do. The proposed solution of > encapsulating it in the "class Admin" is nice and clean.
I would like to see this in the generic views as well (in which case maybe the method should be in Meta?). Other than that, people need to use custom views anyhow, so they can do what they need to there. Joseph