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

Save translation object even with default translation data #84

Conversation

martinsvoboda
Copy link
Contributor

Update of save_translation method. Now it saves object even if translation is empty (with default values). This fixes #80

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 85.08% when pulling 9feddc5 on martinsvoboda:save-trans-with-default-data into 75e0bd9 on edoburu:master.

vdboor added a commit that referenced this pull request Aug 4, 2015
There is no need to check for is_empty, as it the pk check handles it.
For completeness check for `pk is None` which is what all other code
does. As strange as it seems, a PK of 0 is allowed in databases.
@vdboor
Copy link
Contributor

vdboor commented Aug 4, 2015

I've merged your commit into a separate branch! It seems to be pretty ok, but I'll have to test whether it won't influence my projects - especially when working with multiple translated models.

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.

Optional translation object not created in admin
3 participants