So I’m wondering, nowadays it is normal to use your email address to login into an ecommerce website and make a purchase, or buy an airplane ticket. We could do this both as a guest as well as a registered user.
This makes me wonder;
- Can we use ‘email’ as a unique identifier through django-allauth; Yes we can
- To make it possible to place an order as guest, we should not create a unique constrain on the ‘email’ field. (otherwise the same guest could not place an order twice); We could
But can we do both? Use the ‘email’ as a unique identifier but also remove the unique constrained on the same field?