﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10226	dango.test.client.Client raise a value error when used against the admin with a get parameter	Batiste Bieler	nobody	"Hello,

I have this problem when I want to test my admin application:

Hello, I have the same error with this test:



{{{

from django.test import TestCase

from datetime import datetime



class PostBugTestCase(TestCase):



    fixtures = ['tests.json']



    def test_stuff(self):



        from django.test.client import Client

        c = Client()

        data = {'question':'test', 'pub_date':datetime.now()}

        print c.login(username='batiste', password='b')

        response = c.post('/admin/toto/poll/add/?toto=true', data)

        self.assertRedirects(response, '/admin/toto/poll/')




>>> ./manage test
ValueError: invalid literal for int() with base 10: 'add/?toto=true'
}}}

I use the Poll model from the tutorial to show the problem."		closed	contrib.admin	1.0		fixed			Unreviewed	0	0	0	0	0	0
