We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Cleared ImageField / FileField returns False as value.
This code assigns False to model field. This saves 'False' to database field.
django-parler/parler/models.py
Lines 312 to 315 in 904eacd
Django uses following code to convert False to delete action:
https://github.com/django/django/blob/e03cdf76e78ea992763df4d3e16217d298929301/django/forms/models.py#L84-L85
This issue can be fixed with this code:
for field, value in model_fields.items(): try: model_field = parler_meta.model._meta.get_field(field) model_field.save_form_data(translation, value)
The text was updated successfully, but these errors were encountered:
try mireq's patch without try: until I know what Exceptions to look f…
9ec2b31
…or... See django-parler#326
try mireq's patch. See django-parler#326
6bae279
No branches or pull requests
Cleared ImageField / FileField returns False as value.
This code assigns False to model field. This saves 'False' to database field.
django-parler/parler/models.py
Lines 312 to 315 in 904eacd
Django uses following code to convert False to delete action:
https://github.com/django/django/blob/e03cdf76e78ea992763df4d3e16217d298929301/django/forms/models.py#L84-L85
This issue can be fixed with this code:
The text was updated successfully, but these errors were encountered: