Skip to content
Advertisement

Tag: django-model-field

A count of ForeignKey

I have class Team, which means a group of users. And the relation with User is One-to-Many. But Team may consist of 2 and N members. I think to write manually is not our way, because it depends on count of people which is always variable. How can I do it more elegant and rational? I mean to connect count

Advertisement