Alireza Soori
Alireza Soori

Reputation: 645

django oscar doesnt pick up customizations

I've forked address app and created a new models and forms.py file.

While overriding base AbstractAddress model cause I didn't need the phone number mix in and a couple of other options.

Problem is that oscar only picks up the model file customization and gives the following error while loading the wrong form class from oscar

     raise FieldError(message)
django.core.exceptions.FieldError: Unknown field(s) (postcode, country, line4, line2, line3, line1) specified for UserAddress

Upvotes: 1

Views: 208

Answers (1)

Albin Antony
Albin Antony

Reputation: 805

did you forgot to add from oscar.apps.address.models import * at end of forked address app model.py file

Upvotes: 2

Related Questions