Hey folks! General question. When naming models, i...
# orm-help
s
Hey folks! General question. When naming models, is it most common to use singular or plural? For example,
model Difficulty
or,
model Difficulties
. I kinda think the singular is stuck in my head because of the Django ORM, but I am not sure 🙂
1
y
Model represents the singular. If you wrote any OOP before, you name your class
Person
and not
People
because this reads funny
Copy code
People Schalk = new People(name = "Schalk")
People Yuval = new People(name = "Yuval")
People[] Peoples = new Array { Schalk, Yuval }
Anyways, your instincts are right :)
👍 1
s
Thanks, @Yuval Datner