Closed khatchad closed 3 years ago
Likewise for other classes?
This represents the table, so its commits table because its the conglomerate of all the commits.
But, it extends Model
. The way it reads now, Commits
is-a Model
. The multiplicity doesn't match. Either commits are models or a commit is a model.
In other words, Commit
represents a commit, i.e., a single row in the commits table. In contrast, Commit.objects
is all of the commits.
See this example. Here, it's class Person(Model)
instead of class People(Model)
. Make sense?
Created a pull request for this
Great, what is the PR?
This seems to be addressed as part of #55.
https://github.com/ponder-lab/Imperative-DL-Study-Web-App/blob/47c55f03ce4ec99224cbc4e166c426b34e098233/ponder/models.py#L89
Does not an instance of a
Commits
represent a single commit, thusCommit
?