dinoperovic / django-salesman

Headless e-commerce framework for Django and Wagtail.
https://django-salesman.rtfd.io
BSD 3-Clause "New" or "Revised" License
392 stars 48 forks source link

Checkout serializer missing `allow_blank=True` #42

Open thenewguy opened 7 months ago

thenewguy commented 7 months ago

Probably related to #29 and #30 but mentioning issue so it is tracked.

It would be helpful for situations where a customer genuinely does not have an email address to allow checkout without one.

The Order model does not require an email address but the Checkout serializer does.

Simplest workaround I've come up with for the moment is to submit with an email placeholder and then remove it with a pre_save signal.