Ok,
For the record, I finally figured out the problem.
Guess what? Nothing was wrong with my code.
I simply updated from 0.96-pre to 0.97-pre and everything went well.
Hopefully this discussion will help some other poor lonely developer
out there who will stumble across this miserable error.
Re
You tried, thanks!
The errors I get come before any major piece of code. They come after
some simple statements:
OrderDetailForm = form_for_model(Order_Detail)
f = OrderDetailForm()
f.save()
f.is_bound
which means my 0.96-pre (not a typo :) ) version might not be up to
the challenge of newforms.
On Wed, 2007-06-27 at 12:05 -0700, robo wrote:
[...]
> --
> But even using custom forms I get errors:
>
> AttributeError at /vendor/Chef/1/
> 'lineItemPrice' object has no attribute 'save'
> Request Method: POST
> Request URL: http://192.168.1.104:8000/vendor/Chef/1/
> Exception T
In python shell I typed:
>> from gfs_chefrevival.shop.forms import OrderDetailForm
>> from django import newforms as forms
>> f = OrderDetailForm()
>> f.is_bound
I get the error:
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: 'lineItemPrice' object has no attribute 'i
I've also tried abandoning form_for_model and created my own custom
form like so in forms.py:
from django import newforms as forms
from django.newforms.widgets import *
class OrderDetailForm(forms.Form):
order = forms.IntegerField()
quantity = forms.IntegerField()
unitPrice = FloatField(la
Hi Malcolm,
This is my traceback errors from copy&paste:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"
in get_response
74. response = callback(request, *callback_args, **callback_kwargs)
File "/www/htdocs/gfs_chefrevival/../gfs_chefrevi
On Tue, 2007-06-26 at 11:22 -0700, robo wrote:
> Hopefully you guys can spot an error I've not been able to. This is
> the error I get:
>
> AttributeError at /vendor/Chef/1/
> 'Order_DetailForm' object has no attribute 'save'
> Request Method: POST
> Request URL: http://192.168.1.104:8000/vendor/
Hopefully you guys can spot an error I've not been able to. This is
the error I get:
AttributeError at /vendor/Chef/1/
'Order_DetailForm' object has no attribute 'save'
Request Method: POST
Request URL: http://192.168.1.104:8000/vendor/Chef/1/
Exception Type: AttributeError
Exception Value: 'Orde
8 matches
Mail list logo