N
N
Nikita Chukov2017-09-14 03:40:52
Django
Nikita Chukov, 2017-09-14 03:40:52

How to set a limit in django?

Good afternoon,
Please tell me how to set the following restrictions in the model:
There is a class employee with a field, for example, position, you need to make it so that it is impossible to add more than one employee with the position of gender, and it is possible to add as many employees as you like with the position of locksmith or foreman or a guard?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question