Aristotle-Metadata-Enterprises / django-garnett

Django Garnett is a field level translation library that allows you to store strings in multiple languages for fields in Django - with minimal changes to your models and without having to rewrite your code.
https://django-garnett.herokuapp.com/
BSD 3-Clause "New" or "Revised" License
81 stars 3 forks source link

Handle default on inner field #45

Closed harrywhite4 closed 3 years ago

harrywhite4 commented 3 years ago

When a TranslatedField is not submitted it should be set to a dictionary mapping the current language to the default of the inner character fields. This could be implemented as a partial object that calls some function to do the wrapping, since partial is serializable by the django migration system.