django-oscar / django-oscar-stores

Physical store integration for Django Oscar
BSD 3-Clause "New" or "Revised" License
92 stars 58 forks source link

store_stock template tag only works for PostGIS #28

Closed roadsideseb closed 5 years ago

roadsideseb commented 11 years ago

GeoDjango's queryset API allows for specifying a field_name that should be used for the specific method used. The keyword is, however, limited to fields on the same model itself.

According to the documentation PostGIS is the only backend that supports calculations on related models such as: stores__location. This currently limits the template tag to be only usable with PostGIS.

This need to be solved. Ideally with a solution that works for every backend although it might be better to leverage the PostGIS internal handling on that backend and have a fallback for others.

codeinthehole commented 11 years ago

store_stock templatetag does not exist any more.

codeinthehole commented 11 years ago

Oops - oh yes it does - reopening.

solarissmoke commented 5 years ago

This will be fixed by #91.