basket, __ = manager.get_or_create(owner=request.user, site__id = settings.SITE_ID)
from oscar.apps.dashboard.catalogue.forms import *
class StockRecordForm(StockRecordForm):
def __init__(self, product_class, user, *args, **kwargs):
super(StockRecordForm, self).__init__(*args, **kwargs)
if product_class.track_stock:
self.fields['tax_rate'].required = True
можно написать