'The `next` key needs to handle already having a query string (#10585)'

def testCommentNextWithQueryString(self):

    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    data['next'] = '/somewhere/else/?foo=bar'
    data['comment'] = 'This    is    another    comment'
    response = self.client.post('/post/', data)
    location = response['Location']
    match = re.search('^http://testserver/somewhere/else/\\?foo=bar&c=\\d+$', location)
    self.assertTrue((match != None), ('Unexpected    redirect    location:    %s' % location))
