- Fixed comments SignalsStub for Django 4.0
- Added Django 4.0 compatibility
- Removed Django 1.x compatibility code in
fluent_utils.django_compat
. - Renamed CommentRelation =>/CommentsRelation, but kept the old name for imports.
- Dropped Django 1.x support.
- Dropped Python 2.7 - 3.5 support.
These changes should not affect projects that already depend on Django 2.2 / Python 3.6+. Otherwise, you'll have to stay on django-fluent-utils 2.x, but it's recommended to upgrade.
- Fixed Windows compatibility for
import_module_or_none()
.
- Fixed Django 2.0 compatibility.
- Added imports for
django.urls
for Django 1.9- compatibility.
- Make sure gevent import hooks are ignored in
import_module_or_none()
andimport_apps_submodule()
.
- Added
import_module_or_none()
, which only raises anImportError
for sub modules. - Fixed Python 3 import logic, using
importlib
now. - Make sure
TaggableManager
has a consistent path in migration files. - Removed
fluent_utils.dry.models.get_db_table()
which never worked not was used. - Removed unneeded Django 1.4-1.6 compatibility code. Kept imports to avoid breaking old django-fluent apps.
- Fixed bogus migration changes detected by Django 1.11 for the
AnyFileField
/AnyImageField
softdep.
- Fixed bogus migration changes detected by Django 1.11 for the
AnyUrlField
softdep.
- Added
MiddlewareMixin
for Django 1.10 compatibility. - Fixed error in soft-dependency comments module when no comments app is installed;
the
get_comments_are_open
andget_comments_are_moderated
functions didn't check this properly.
- Added support taggit-selectize. When installed all fluent apps use this dependency.
- Bugfix for Django 1.10 compatibility
- Added Django 1.7+ compatible imports for
get_model()
andget_current_site()
.
- Added Django 1.9 imports for
ForwardManyToOneDescriptor
/ReverseOneToOneDescriptor
.
- Allow
is_installed()
to work before Django app registry is ready.
- Add soft-dependency support for django-any-imagefield..
- Added
fluent_utils.softdeps.comments.signals
stub export. - Added
fluent_utils.django_compat.get_meta_model_name()
. - Added
fluent_utils.django_compat.is_queryset_empty()
.
- Added new exports in
fluent_utils.softdeps.comments
:get_form()
andsignals
- Fix Django 1.6 compatibility for truncate_name import
- Added
fluent_utils.django_compat.get_app_label()
- Added
fluent_utils.dry.models.get_db_table()
- Added
fluent_utils.dry.fields.HideChoicesCharField
- Fix
import_apps_submodule()
andimport_class()
to ignore PyDev/PyCharm 4.x import hook. - Added
fluent_utils.softdeps.fluent_pages.mixed_reverse_lazy()
function.
- Fix django-taggit support, only django-taggit-autosuggest or django-taggit-autocomplete-modified worked.
- Add soft-dependency support for django-any-urlfield.
CommentModelStub
: avoid getting an relation on User and Site
- First release