divio/django-shop — Issue #145: OrderItem's product_reference is a CharField
Author: twoolie
Created: 2012-02-27 05:13:43+00:00
State: open

This may not seem like a bad thing now, but it becomes a problem if you ever want to do analysis on that data ( see airtonix/cmsplugin-shop#1 ).

Is there any reason why this would not be a ForeignKey with on_delete=[NULL|PROTECT] ? This would allow ORM querying as expected and also preserve OrderItems when Products are deleted.