Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed MySQL failing test introduced by c86a9b6 #1282

Merged
merged 1 commit into from
Jun 19, 2013

Conversation

loic
Copy link
Member

@loic loic commented Jun 18, 2013

No description provided.

@@ -4289,14 +4289,14 @@ def test_add_view(self):

post_data['_save'] = 1
response = self.client.post(self.get_add_url(), data=post_data)
self.assertRedirects(response, self.get_change_url(self.get_sample_user_id() + 1))
self.assertRedirects(response, self.get_change_url(User.objects.order_by('-id')[0].pk))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User.objects.latest('pk').pk would look better IMHO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your input, I've updated as you suggested.

aaugustin added a commit that referenced this pull request Jun 19, 2013
Fixed failing test on MySQL since c86a9b6
@aaugustin aaugustin merged commit d9a4354 into django:master Jun 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants