On Wed, 2006-10-04 at 18:58 -0500, James Bennett wrote:
> On 10/4/06, wam <[EMAIL PROTECTED]> wrote:
> > The closest I've been able to figure out is to create a custom view and
> > call create_object from my view. Then, depending on whether the
> > returned object from create_object is an instance of
> > HttpResponseRedirect() I can determine if the addition/edit was
> > successful; however, I still don't have access to the new/editted
> > object.
> 
> This is probably the way to do it; adding special-case hooks to the
> generic views doesn't sound like a good solution to me.
> 
> For getting access to the object, I believe that when the 'post_save'
> dispatcher signal is sent after saving, one of the included attributes
> of the signal is the object itself.

There is some documentation on how Django's signals system works and how
to hook into it here: http://code.djangoproject.com/wiki/Signals

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to