Django-machina 1.0 release notes (2019-04-06)¶
Requirements and compatibility¶
Python 3.4, 3.5, 3.6 and 3.7. Django 2.0, 2.1 and 2.2.
Major changes¶
Default templates are upgraded to Bootstrap 4
A new
MACHINA_USER_DISPLAY_NAME_METHODsetting is introduced. The setting defines the name of a method on the project’sUsermodel to be used to retrieve user display names
Minor changes¶
The forms used by the admin classes of the
forumapplication are now imported using the django-machina’s class loading system. This is to allow to easily override the related form fields and widgets in order to customize the corresponding admin pagesIt is now possible to easily override the way forum member display names are retrieved for each user. See Using custom forum member display names for more details
The SimpleMDE Markdown editor was replaced by the EasyMDE Markdown editor
Backwards incompatible changes¶
Support for Python 2.7 is dropped
Support for Django 1.11 is dropped
The
get_appshelper is removed. This function was used to append the machina’s applications (and overridden applications) to theINSTALLED_APPSsetting. Now machina’s applications and overridden applications must be explicitly defined in the Django settingsThe
machina.core.app.Applicationclass is improved and moved tomachina.core.urls.URLPatternsFactoryin order to better suit the initial responsibility of this helper. Thus all theappmodules in the machina applications have been removed and replaced by anurlsmodule. The way to include machina URLs has been updated so that it is now possible to benefit from a standardmachina.urlsmodule containing anurlpatternslistIn order to better follow Django conventions, all django-machina’s
AppConfiginstances are renamed to<AppName>AppConfig(eg.ForumConversationAppConfig) and are moved toappsmodules inside each applicationThe
poster_ipfield (that used to contain the IP address of post authors) is removed from thePostmodel as it wasn’t really used in the context of the forum application
Fixes¶
Fix incorrect logic related to the use of the
MACHINA_DEFAULT_AUTHENTICATED_USER_FORUM_PERMISSIONSsetting that resulted in forums or categories not being displayed in the list of forumsFix missing check that allowed users to reply to locked topics (#155)