django admin connect two model in creation

后端 未结 0 1398
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 01:58

I have three models

class Voting(Model):
    id = ...


class Candidate(Model):
    voting = ForeignKey(Voting, on_delete=DO_NOTHING)


class Commands(Model):
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题