diefenbach / django-lfs

An online-shop based on Django
http://www.getlfs.com
BSD 3-Clause "New" or "Revised" License
622 stars 222 forks source link

'NoneType' object has no attribute 'get_absolute_url' Error #57

Closed davidemoro closed 11 years ago

davidemoro commented 11 years ago

How to reproduce:

Certain explorer versions omits the u'add-to-cart' value from the request. All fine with IE9 and Firefox.

Traceback: AttributeError 'NoneType' object has no attribute 'get_absolute_url' TRACEBACK: File ".../eggs/Django-1.3.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response response = callback(request, _callback_args, *_callback_kwargs)

File ".../django_lfs/lfs/catalog/views.py", line 608, in product_form_dispatcher variant.get_absolute_url(),

pigletto commented 11 years ago

Seems to be this issue: http://www.rachaelarnold.com/dev/archive/enter-key-form-submission-bug

pigletto commented 11 years ago

Fixed at lfs-theme: https://github.com/diefenbach/lfs-theme/commit/7cb567188a4cc3ffa985bdec1fc43343d2ee8239