Inspectopedia Help

Django ORM error

Reports several methods that may not be called due to some ORM reasons.


class Choice: question = ForeignKey(Question, null=False) choice_set = Question.objects.get(id=1).choice_set.remove()

The remove function can not be called if the foreign key has null=False.

Inspection Details

Available in:

PyCharm 2023.3


Python, 233.SNAPSHOT

Last modified: 13 July 2023