I have a model and a form which is used to insert new rows in database. For 
every inserted (or edited) row I need to make a database lock and check if 
edited row have a conflict with rows that are already in the database.

Where is the right place for this checks? In form validation? In a view or 
in the model?

Or may be use signals (don't know how)

And if it's not in a view, how to get a correct database handle if multiple 
databases can be used in project?
Also here: 
http://stackoverflow.com/questions/6137650/django-model-custom-save

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to