So i've just gotten back on this project, and it looks like i'm still
doing something wrong with my forms code.
What i have right now is:
def timesheets_add(request):
if request.method == 'POST':
form = TimeSheetForm(request.POST)
if form.is_valid():
form.save()
return render_to_response("confirmation.html",locals())
else:
"some YOU FAILED" code
else:
form = TimeSheetForm()
return render_to_response("form_page.html", locals())
The error i receive now is "TimeSheetForm has no attribute "save""
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---