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.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to