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(label='Price', max_digits=10, decimal_places=2) lineItemPrice = FloatField(label='Line Item Price', required=False, max_digits=10, decimal_places=2) item = forms.IntegerField() size = forms.ChoiceField(choices=SIZE) timestamp = forms.DateTimeField(required=False) vendor = forms.IntegerField() ---------------------- Then in my view: from django.shortcuts import render_to_response, get_object_or_404 from django.contrib import * from gfs_chefrevival.store.models import * from gfs_chefrevival.shop.forms import OrderDetailForm from gfs_chefrevival.products.models import * from gfs_chefrevival.vendors.models import Vendor from django.contrib.auth.models import User from django.http import * from django import newforms as forms import datetime detail_form_data = { #'timestamp': datetime.datetime.now(), 'vendor': vendor_id, 'unitPrice': 5.23, 'lineItemPrice': 1.90, 'quantity': 1, 'order': 1, 'size': "M", 'item': 5 } def vendor(request, vendor_name, vendor_id): if request.method == 'POST': form = OrderDetailForm(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect(".") else: form = OrderDetailForm(detail_form_data) ------------------ 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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---