Hi

I would like to overwrite the save_model function of a model. During this 
save i need to have access to some refering models wich are also newly 
created with (admin.TabularInline).

The post save method of accessing these would be:

allReferingObjects = ReferingModel.objects.filter(refereTo=referedModel.id)

of cause the referedModel.id  does not exist because the model is not 
stored in database yet

the post_save signal will provide all required functionality because i need 
to give the user a feedback if something went wrong

thanks for help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/yTDdcIU_VAMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to