djangosnippets.org: Latest snippets posted by dune2https://djangosnippets.org/users/dune2/2007-12-13T22:27:27.874395-06:00dune2OwnerField
2007-12-13T22:27:27.874395-06:00dune2https://djangosnippets.org/snippets/509/<p>This is a little helper for associating an owner to a newly created object, in this case making the assumption that the current user is always the owner. It removes the necessity of adding a custom save hook to your model.</p>
<p>get_current_user comes from this middleware trick to cache the …</p>
Freely redistributable