Closed martonvago closed 2 weeks ago
We have the style guide say exactly what you describe: https://design.seedcase-project.org/style/naming#variables
So if it only contains one table, it should be called table
. 💪🏻 So not just a personal preference 😁
Moved this to me as I would suggest that we close it. It is mentioned in the style guide, and we also have a list of all the places where plural occurs where it probably shouldn't (#509)
Maybe a personal preference, but I find the plural for the model names a bit confusing. It seems to lead to naming variables in the plural (e.g.
tables = Tables.objects.get(pk=table_id)
) which actually refer to singular instances. Similarly, within models some properties use a plural name while actually pointing to a single object in a many-to-one relationship (e.g. oneFile(s)
belongs to oneTable(s)
, but this table is accessed through thetables
property).