I have three models
class Voting(Model): id = ... class Candidate(Model): voting = ForeignKey(Voting, on_delete=DO_NOTHING) class Commands(Model):