mirumee / django-prices

Django fields for the prices module
158 stars 53 forks source link

Fails when using null=True and NULL values. #9

Closed cellofellow closed 11 years ago

cellofellow commented 11 years ago

Got this traceback when I set a None value on a nullable column.

File "/home/ubuntu/.virtualenvs/doterrapro/local/lib/python2.7/site-packages/django_prices/models.py" in get_db_prep_save
  25.         return connection.ops.value_to_db_decimal(value.net,

Exception Type: AttributeError at /admin/marketplace/product/7/
Exception Value: 'NoneType' object has no attribute 'net'