V
V
val1n0r2020-02-09 15:15:52
Django
val1n0r, 2020-02-09 15:15:52

How to limit the number of foreignKey?

On stupid I certainly can consider each time kol-in foreignkey in the table for the separate user, but it each time superfluous request.
Is there a more elegant way to limit the number of such links?
Let's say I want to assign a maximum of 15 keys to the "User" field

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-02-09
@val1n0r

write an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question