Exemplo n.º 1
0
def addwriter(request):
	AUTHOR = Author()
	AUTHOR.AuthorID = request.POST['author_ID']
	AUTHOR.Age = request.POST['author_age']
	AUTHOR.Country = request.POST['author_country']
	AUTHOR.Name = request.POST['author_name']
	AUTHOR.save()
	AuthorList = Author.objects.all()
	return render_to_response('addbook.html')