I have several tables where there should only be one possible combination of
two uuid-fields per table (mostly many to many links).

I have created 'unique' constraints for those fields in Postgresql so the
database would not accept any inserts or edits which violates that
constraint.

I use that in combination with 'try:..  except:' to insert data.

Can DAL be used in a way for this?  As far as I understand the IS_NOT_IN_DB
validators that it is working on form-level and not on database level and I
am not sure whether it can be used for a combination of fields (unless I do
it with a computed field - which will use up a lot of extra resources).

Regards
Johann

-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to