3.0.0a1
Pre-release
Pre-release
This is Django-IDOM's biggest update yet!
To upgrade from previous version you will need to...
- Install
django-idom >= 3.0.0 - Run
idom update-html-usages <DIR>to update youridom.html.*calls to the new syntax - Run
python manage.py migrateto create the new Django-IDOM database entries
Added
- The
idomclient will automatically configure itself to debug mode depending onsettings.py:DEBUG. use_connectionhook for returning the browser's activeConnection
Changed
- It is now mandatory to run
manage.py migrateafter installing IDOM. - Bumped the minimum IDOM version to 1.0.0
- Due to IDOM 1.0.0,
idom.html.*, HTML properties are nowsnake_case**kwargsrather than adictof values. - You can auto-convert to the new style using
idom update-html-usages <DIR>.
- Due to IDOM 1.0.0,
- The
componenttemplate tag now supports both positional and keyword arguments. - The
componenttemplate tag now supports non-serializable arguments. IDOM_WS_MAX_RECONNECT_TIMEOUTsetting has been renamed toIDOM_RECONNECT_MAX.
Removed
django_idom.hooks.use_websockethas been removed. The similar replacement isdjango_idom.hooks.use_connection.django_idom.types.IdomWebsockethas been removed. The similar replacement isdjango_idom.types.Connection
Fixed
view_to_componentwill now retain any HTML that was defined in a<head>tag.- React client is now set to
productionrather thandevelopment. use_querywill now utilizefield.related_namewhen postprocessing many-to-one relationships
Security
- Fixed a potential method of component template tag argument spoofing.
- Exception information will no longer be displayed on the page, based on the value of
settings.py:DEBUG.