Real customization of oscar.model.AbstractOption not possible

Author: printshirtCreated Jul 2, 2026Updated Jul 2, 2026

Summary I have tried to customize and override oscar.model.AbstractOption to set up a T-shirt printing service on the basis of Django Oscar. Obviously a T-shirt printing service requires the upload OPTION of an image, that the customer wants to have printed on the shirt. I do not doubt, that the Oscar overriding customization works for most requirements in other apps (basket, checkout, payment, ...). But the catalogue app does - with sensible effort - not allow for other option types than those, that can be stored in a CharField on the database backend.

In Detail oscar.abstract_model.AbstractOption is limited to

TYPE_CHOICES = ( (TEXT, _("Text")), (INTEGER, _("Integer")), (BOOLEAN, _("True / False")), (FLOAT, _("Float")), (DATE, _("Date")), (SELECT, _("Select")), (RADIO, _("Radio")), (MULTI_SELECT, _("Multi select")), (CHECKBOX, _("Checkbox")).

Additionally also a catalogue.forms.py is missing, that would handle the appearance of the Option in the product detail page. (In the Oscar workflow an option already pops up on the product detail page and is added to the cart WITH REQUIRED OPTION already.) As catalogue.forms.py is missing it also cannot be overriden to create a custom Option other than text, integer, bollean, float, date, select, radio, multi_select and checkbox.

Instead the form and view logic of the product detail page is deeply knitted into the Django Oscar base functionality templates. Compare oscar/partials/add_to_basket_form.html: {% include "oscar/partials/form_fields.html" with form=basket_form %}

It is simply not possible to customize/ override oscar/partials/form_fields.html to create an image upload option for t-shirt printing! The Oscar product detail page does not behave like a customizable framework, but as a fixed shop page!

Beside from that, the whole programming of the product detail page is completely unmodular, unpythonic and obviously does not comply to Django form, view, template design in any regard.

All the program code around the product detail page requires a big systematic overhaul!

Source: django-oscar/django-oscar