Error when adding Prices to Subitem.

Create issue
Issue #91 resolved
Former user created an issue

When I try to add a custom price to a subitem, I'm getting an "invalid value for integer field" error. (possibly from Postgresql). I solved the problem with changing line 477 of product/models.py like this:

{{{ if prices.exclude(id=self.id).count(): }}}

{{{ if self.id and prices.exclude(id=self.id).count(): }}}

Reported by sleytr

Comments (3)

  1. Log in to comment