python - Data insertion error: invalid literal for int() with base 10 -
i'm using django-nonrel on google app engine. i'm trying add row database error when trying use save(): invalid literal int() base 10 here's code: views.py from django import forms django.contrib.auth.decorators import login_required django.contrib.auth.forms import usercreationform django.http import httpresponseredirect django.shortcuts import render_to_response forms import sayform models import saying, category import datetime def say_something(request): if request.method == 'post': form = sayform(request.post) if form.is_valid(): cd = form.cleaned_data content = cd['content'] category_temp = "uncategorized" category = category.objects.get(name = category_temp) added_date = datetime.datetime.now() added_user = request.user saying = saying(content, category, added_date, added_user) saying.save() return httpresponseredirect('/contribute/success...