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 Type: AttributeError
> Exception Value: 'lineItemPrice' object has no attribute 'save'
> Exception Location: /www/htdocs/gfs_chefrevival/../gfs_chefrevival/
> shop/views.py in vendor, line 131
> 
> This error shows up for EVERY form field in my forms.py (I've
> commented out one by one).
> 
> FYI, I'm using Django's development version (0.96-pre), could this be
> a problem?

If it says "0.96-pre" you aren't using the development version. You are
using something from before the last release. However, even if you made
a typo there and are really using 0.97-pre, there are no known huge bugs
in the form handling code. Lots of people are using the development
version. You are using some code that is at least a month or two old,
though, since FloatField no longer takes max_digits and decimal_places
in trunk.

I have no guess as to what is going wrong here .You're just going to
have use normal debugging techniques: put print statements into the
code, for example and check that things are the types they should be.
Read the Django source where it is failing and work out what it is
expecting. Reduce your problem case to an example that is as small as
possible so you don't have to worry about extra stuff getting in the
way. Things like that.

You are getting some fairly explicit error messages, so working out what
is trying to call save() on a form field (and why) is going to go a long
way towards solving this.

Regards,
Malcolm

-- 
What if there were no hypothetical questions? 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to