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

Adds tests for get_object_from_request #8

Merged
merged 7 commits into from
Aug 19, 2015

Conversation

mkoistinen
Copy link
Contributor

No description provided.

@mkoistinen mkoistinen force-pushed the mkoistinen/test_get_object_from_request branch from cd9f4c4 to a41a36f Compare August 19, 2015 18:27
try:
translated_fields = model._parler_meta.get_translated_fields()
except AttributeError:
translated_fields = None

Choose a reason for hiding this comment

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

you could save a condition by making this an empty list and simply checking if slug_url_kwarg in translated_fields

@czpython
Copy link

LGTM. Ok to merge once tests pass.

mkoistinen added a commit that referenced this pull request Aug 19, 2015
…uest

Adds tests for get_object_from_request
@mkoistinen mkoistinen merged commit 1dac9f2 into master Aug 19, 2015
@mkoistinen mkoistinen deleted the mkoistinen/test_get_object_from_request branch August 19, 2015 20:28
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.

None yet

2 participants