Re: Lack of validation at the object level.

2021-06-30 Thread Args Kwargs
Thank you so much. ср, 30 июн. 2021 г. в 18:43, 'Adam Johnson' via Django developers (Contributions to Django itself) : > "Unique restriction will be ignored" - this is not the case. Uniqueness is > enforced by the database, so as long as your migrations have been built and > run correctly, the d

Re: Lack of validation at the object level.

2021-06-30 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
"Unique restriction will be ignored" - this is not the case. Uniqueness is enforced by the database, so as long as your migrations have been built and run correctly, the database will error when trying to insert a duplicate unique value. If you're finding that you can create duplicates on unique fi

Re: Lack of validation at the object level.

2021-06-30 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
What validation do you need? Much can be done in the database with constraints, especially check constraints. On Wed, 30 Jun 2021 at 08:05, Михаил Итпрогер wrote: > Hello, I am currently developing a reusable application using the Django > framework. > > It just so happens that the instances of