El 24/03/2014 18:50, "Cédric Krier" <cedric.kr...@b2ck.com> va escriure: > > On 24 Mar 18:36, Guillem Barba Domingo wrote: > > El 24/03/2014 14:51, "Cédric Krier" <cedric.kr...@b2ck.com> va escriure: > > > > > > On 24 Mar 08:51, Guillem Barba Domingo wrote: > > > > You can achieve what you want with a UNIQUE sql_constraint and with > > _order > > > > property of model. > > > > > > UNIQUE constraints should always avoided if possible. > > > > Why? > > Because it is a constraint and each time you add a constraint you reduce > the possibilities for the user.
That's the reason why the constraint isn't ib the core module, but there isn't any technical reason to avoid constraints in custom modules, is it?