on_delete报错

ward_id = models.ForeignKey(Ward, Ward.id, on_delete=models.SET_DEFAULT, default=None) TypeError: init() got multiple values for argument 'on_delete'

评论 1