You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
Currently, templates for related models must be defined at the level in which they are traversed. This feature proposes being able to define a model → template mapping as an option or globally.
# In project settings.. mapping model label to preserialize optionsPRESERIALIZE_MODEL_TEMPLATES= {
'library.Library': { ... },
'library.Book': { ... },
'library.Author': { ... },
}
frompreserialize.serializeimportserializelibraries=Library.objects.all()
# Internally this use the setting as it comes across model-based dataserialize(libraries)
The text was updated successfully, but these errors were encountered:
Currently, templates for related models must be defined at the level in which they are traversed. This feature proposes being able to define a model → template mapping as an option or globally.
The text was updated successfully, but these errors were encountered: