djangosnippets.org: Latest snippets tagged with 'create_update'https://djangosnippets.org/tags/create_update/2008-05-12T05:13:28.303754-05:00decorator to add author to extra_fields in snippets 635
2008-05-12T05:13:28.303754-05:00gehelhttps://djangosnippets.org/snippets/753/<p>I had the need to add <code>request.user</code> to the <code>extra_fields</code> argument of quite a few of my view based on <a href="http://www.djangosnippets.org/snippets/635/">create_update for newforms snippet</a>. I could have wraped the <code>create_object</code> function in my views.py, but as the logic is always the same, it seemed like a good idea to …</p>
Freely redistributable