[Answered ]-Model name conflict while Extending Django Oscar?

2👍

Make sure you remove oscar.apps.catalogue from the list of INSTALLED_APPS when you replace it with your own override. In particular if you call get_core_apps(), make sure you include forked_apps.catalogue in the list you provide to the function.

Failing to do so may cause Django to load Oscar’s models before loading your overrides which would result in duplicates (and the error).

👤patrys

0👍

If I don’t import anything from oscar.apps.catalogue.models then those models are not registered and hence I won’t see a conflict. I was importing a model(not shown in the question) from it thus I had a conflict.

Leave a comment