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
Main benefit: We can keep track of items linked with a foreign key (django-filer files, news, whatever). Currently, we use a very light approach, link data is only stored in the ckeditor html with data attributes on the link itself, which makes advanced things more complicated (many 2 many fields are not possible, for example, or must be coded as comma separated value field ;-)
Development
with signals, when a model instance with a ckeditor field is saved
configure signals, or watch all models/saves, and check fields (support django-ckeditor, and what else..)?! configurable field types to watch for?
handle deletion of instances (with signals)
provide management command, to cleanup after instance that were removed with batch deletion
hard: handle copy paste scenarios: link instances from one model/parent instance cannot be used in another model/parent instance's ckeditor field. there must be a check on every save for this scenario.
The text was updated successfully, but these errors were encountered:
benzkji
changed the title
save instances of our links to the database
Save instances of links to the database
Apr 5, 2022
Main benefit: We can keep track of items linked with a foreign key (django-filer files, news, whatever). Currently, we use a very light approach, link data is only stored in the ckeditor html with data attributes on the link itself, which makes advanced things more complicated (many 2 many fields are not possible, for example, or must be coded as comma separated value field ;-)
Development
The text was updated successfully, but these errors were encountered: