At the bottom of the page there is this line:
"You use a ModelInline class for the OrderItem model ..."
There is no ModelInline class in Django 5, just TabularInline and StackInline.
The author probably meant:
"You use a TabularInline class for the OrderItem model ..." which would correspond to the code immediately above this line.
At the bottom of the page there is this line:
"You use a ModelInline class for the OrderItem model ..."
There is no ModelInline class in Django 5, just TabularInline and StackInline.
The author probably meant:
"You use a TabularInline class for the OrderItem model ..." which would correspond to the code immediately above this line.